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

Prediction of the Cu oxidation state from EELS and XAS spectra using supervised machine learning

간접 관련 수소연료전지 · (7) MEA(막전극접합체) (6) PEM(고분자전해질막)

기본 정보

저자
  1. Samuel P. Gleason — Department of Chemistry, University of California, Berkeley, CA, USA|||National Center for Electron Microscopy Facility, Molecular Foundry, Lawrence Berkeley National Laboratory, Berkeley, CA, USA
  2. Deyu Lu — Center for Functional Nanomaterials, Brookhaven National Laboratory, Upton, NY, USA
  3. Jim Ciston — National Center for Electron Microscopy Facility, Molecular Foundry, Lawrence Berkeley National Laboratory, Berkeley, CA, USA
DOI
10.1038/s41524-024-01408-1
저널
npj Computational Materials
발행년도
2024
발행기관
Nature Portfolio
피인용수
19
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41524-024-01408-1
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W4402645831

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
(6) PEM(고분자전해질막)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
EELS, XAS, oxidation state, machine learning, nanomaterials
판단 근거
이 논문은 머신러닝을 이용해 나노 물질(특히 구리)의 산화 상태를 예측하는 분석 모델을 다룹니다. 이는 코오롱인더스트리의 수소연료전지(PEMFC)용 촉매나 이온전도성 고분자막의 화학적 상태 및 열화 분석 기법에 응용될 수 있는 분석 방법론 연구입니다.
R&D 활용 포인트
연료전지용 MEA의 촉매(Pt/C 등)나 전해질막의 화학적 구조 변화 및 산화 상태를 정밀하게 분석하는 데이터 기반 모델링 기술로 활용 가능합니다.
평가 입력
본문 63,690자 중 30,032자 발췌

초록

Abstract Electron energy loss spectroscopy (EELS) and X-ray absorption spectroscopy (XAS) provide detailed information about bonding, distributions and locations of atoms, and their coordination numbers and oxidation states. However, analysis of XAS/EELS data often relies on matching an unknown experimental sample to a series of simulated or experimental standard samples. This limits analysis throughput and the ability to extract quantitative information from a sample. In this work, we have trained a random forest model capable of predicting the oxidation state of copper based on its L-edge spectrum. Our model attains an R 2 score of 0.85 and a root mean square error of 0.24 on simulated data. It has also successfully predicted experimental L-edge EELS spectra taken in this work and XAS spectra extracted from the literature. We further demonstrate the utility of this model by predicting simulated and experimental spectra of mixed valence samples generated by this work. This model can be integrated into a real-time EELS/XAS analysis pipeline on mixtures of copper-containing materials of unknown composition and oxidation state. By expanding the training data, this methodology can be extended to data-driven spectral analysis of a broad range of materials.

본문 63,690자

본문 펼치기
Published in partnership with the Shanghai Institute of Ceramics of the Chinese Academy of Sciences https://doi.org/10.1038/s41524-024-01408-1 # Prediction of the Cu oxidation state from EELS and XAS spectra using supervised machine learning [Check for updates](http://crossmark.crossref.org/dialog/?doi=10.1038/s41524-024-01408-1&domain=pdf) Samuel P. Gleason 1,2, Deyu Lu 3 & Jim Ciston 1 Electron energy loss spectroscopy (EELS) and X-ray absorption spectroscopy (XAS) provide detailed information about bonding, distributions and locations of atoms, and their coordination numbers and oxidation states. However, analysis of XAS/EELS data often relies on matching an unknown experimental sample to a series of simulated or experimental standard samples. This limits analysis throughput and the ability to extract quantitative information from a sample. In this work, we have trained a random forest model capable of predicting the oxidation state of copper based on its L-edge spectrum. Our model attains an R <sup>2</sup> score of 0.85 and a root mean square error of 0.24 on simulated data. It has also successfully predicted experimental L-edge EELS spectra taken in this work and XAS spectra extracted from the literature. We further demonstrate the utility of this model by predicting simulated and experimental spectra of mixed valence samples generated by this work. This model can be integrated into a real-time EELS/XAS analysis pipeline on mixtures of copper-containing materials of unknown composition and oxidation state. By expanding the training data, this methodology can be extended to data-driven spectral analysis of a broad range of materials. Due to their wide range of accessible oxidation states and materials applications, the ability to determine the oxidation state of third-row transition metals is essential to a wide variety of applications. These include the development of catalysts <sup>1</sup>, photovoltaic devices <sup>2</sup>, and biotechnology <sup>3</sup> . Core level spectroscopy is often used to probe transition metal oxidation states, and two main types are electron energy loss spectroscopy (EELS) and X-ray absorption spectroscopy (XAS). EELS provides detailed atomic scale information, such as oxidation state, coordination number, and local symmetry of a nanomaterial <sup>4,5</sup> . When probing nanomaterials, EELS is often combined with scanning transmission electron microscopy (STEM). In STEM-EELS, an electronbeam is scanned over an area of a sample and a full spectrum is acquired and stored at each probe position. This technique is particularly valuable in the study of nanomaterials due toits combination of high spatial and high energy resolution <sup>6–8</sup> . Like EELS, XAS has also attained wide usage in determining oxidation state and local environment in nanomaterials <sup>9–11</sup> .XAS,however,istypicallylimitedtoaspatialresolutionof a few nanometers <sup>12</sup>, rather than the sub angstrom spatial resolution possible with STEM-EELS <sup>13</sup> . The main advantages of XAS compared to EELS for core-loss spectroscopy are the ability to attain higher signal to noise ratios (SNR) and higher energy resolution, particularly at higher excitation energies <sup>14</sup>, and functionality on thicker samples for hard x-ray excitation <sup>15</sup> . Due tothemyriad usecasesforbothtechniques,theyarecommonlyapplied to the nanoscale study of materials containing third row transition metals. However, since EELS and XAS spectra encode the electronic properties of the sample in an abstract way, extracting physical descriptors is a non-trivial task in spectral analysis. Therefore, quantitative spectral analysis is often the rate limiting step in materials characterization, and can typically only be conducted by trained experts. This is especially true of L-edge spectra of transition metals, where variations in oxidation state can manifest in small shifts in edge location, L2/L3 ratio and peak width that are not immediately obvious to a non expert, particularly for samples containing multiple oxidation states <sup>16</sup> . Oxidation state assignment is typically done by mapping the unknown spectrum to known experimental or simulated standards, a process which can be time intensive and requires significant domain knowledge. Particularly challenging to analyze are mixed valence materials, which are often interpreted as combinations of spectra of integer valence structures <sup>17</sup> . The prevailing solution to this problem is to fit integer valence spectra to the unknown spectrum using least squares. This allows a user to input known standards and determine the coefficients of a linear combination of the standard spectra that reproduce the experimental spectrum <sup>17–20</sup> . 1National Center for Electron Microscopy Facility, Molecular Foundry, Lawrence Berkeley National Laboratory, Berkeley, CA, USA. 2Department of Chemistry, University of California, Berkeley, CA, USA. <sup>3</sup> Center for Functional Nanomaterials, Brookhaven National Laboratory, Upton, NY, USA. [e-mail: smglsn12@berkeley.edu; jciston@lbl.gov](mailto:smglsn12@berkeley.edu) Least squares fitting has allowed quantitative oxidation state analysis of mixed valence samples and is widely implemented as the state-of-the-art procedure for quantitative analysis of unlabeled XAS/EELS L-edge data. However, in the case of experimental standards, it has a few serious limitations. First, this procedure requires fresh standards to be taken for each instrument, and often each day, as changes in detector setup and alignment can lead to non trivial changes in the spectra. Second, this procedure is highly sensitive to experimental variation in the acquisition of the standard samples. Contamination with materials of other oxidation state, surface oxidation and beam damage can have a significant impact on the shape of the standard spectrum, and therefore interfere with the fitting of the unknown sample. Additionally, inconsistencies in standard spectrum processing, such as baseline subtraction or the incomplete deconvolution of multiple scattering from the standard sample, can have a similar impact. Third, the presence of any oxidation state or coordination environment unaccounted for by the standards will not only be missed by the prediction of the makeup of the material, potentially missing an important fundamental discovery, but will also lead to an inaccurate representation of the oxidation state as the standard components are forced to represent a signal not originating from any of them. In a similar vein, experimental standards must be taken for every material expected to be present in order to perform the oxidation state analysis. For example, a standard for CuO may not be suitable for an experiment involving CuS due to non trivial differences between the spectra, although they are both a Cu(II) oxidation state <sup>21,22</sup> . Simulated standards suffer from fewer experimental limitations, but instead are limited by the level of approximations used in the theory and often can not perfectly reproduce experimental spectra. This can cause systematic errors leading to significant misidentifications, particularly when applied to noisy experimental spectra or experimental spectra more challenging to simulate. It is rare for simulated standards for L-edge transition metal spectratobequantitativelyaccurateenoughto fitanunknownexperimental spectrum using least squares fitting <sup>23</sup> . Instead, these are used to qualitatively matchcomponentsofanunknownspectrum.Therefore,thereisaneedfora procedure that can determine oxidation state from XAS/EELS L-edge data that is more robust than the least squares fitting of a handful of standard spectra. Anavenueforamorebroadlyapplicableautomatedanalysisprocedure is machine learning (ML). Despite some recent advancementsin automated L-edge XAS/EELS analysis of transition metals using ML approaches <sup>24</sup>, overall, the transition metal K-edge has received more focus from the ML community <sup>25–27</sup> . Numerical analysis of L-edge transition metal XAS/EELS data has mainly been performed using principle component analysis (PCA) to reduce the dimensionality of the spectrum. This field has been well developed, comprising numerous applications of PCA on L-edge XAS/ EELS data <sup>28–31</sup> . Additionally, PCA dimensionality reduction procedures have been used to successfully de-noise low SNR core loss EELS data <sup>32–34</sup> . PCA has also been extended into analysis of oxidation states. Applying component analysis to a mixed valence XAS/EELS spectrum can result in components that mimic the unique oxidation states present. This can be used as a qualitative estimation of the different oxidation states present in a sample, however, it is difficult to ensure each of the resulting components match the pure form of an oxidation state. Therefore, the lack of rigorous physical interpretation of the components makes any quantitative analysis challenging <sup>35</sup> . Supervised machine learning approaches have found success predicting oxidation states in manganese and iron samples, using neural networks and support vector machines <sup>36–38</sup> . However, these models were trained on a small subset of materials and, with the exception of ref. 37 on Mn spectra, only focused on integer valence states. Therefore, the more complicated question of L-edge spectra oxidation state regression of an arbitrary Cu materialcontainingawiderangeofoxidationstateshasnotbeenthoroughly explored. The lack of focus on mixed valence structures generally is especially notable, as such a model is necessary to analyze an in-situ experiment where 1000s of spectra are generated quickly with minor variations in oxidation state. ThisworkhasdevelopedasupervisedMLmodelcapableofconducting a regression task on an unlabeled Cu L2,3-edge XAS/EELS spectrum and predicting the average oxidation state. An outline of this model is shown in Fig. 1. The L2,3-edge was selected as the focus due to the prohibitively high energy of the transition metal K-edge for electron detectors. We utilized the simulated L-edge XAS spectra of transition metals stored in the Materials Project <sup>39,40</sup> as a seed to construct our training set. Despite the differing physical origins of XAS vs EELS, with XAS caused by excitation from a photon and EELS by an electron, under the long wave-length limit and dipole approximation, both spectroscopic methods involve evaluating the same transition matrix element. Therefore, a model trained on XAS data is able to effectively predict EELS data <sup>41,42</sup> for features where the quadrupole contribution is not significant. Cu was selected as the focus of this work due to the myriad applications of Cu nanomaterials. Specifically, Cu nanoparticles (CuNPs) are used in antimicrobial agents <sup>43</sup>, catalysts <sup>44</sup>, and renewable energy devices, particularly the electrochemical reduction of CO245. Examining the oxidation state of Cu nanomaterials is critical to their function, as CuNP preparation procedures can lead to unintended surface oxidation that disrupts many of their applications <sup>43</sup> . Additionally, the major trends in Cu L-edge spectra can be captured accurately in Cu metal, Cu2O, and CuO using the multiple scattering “In this case, multiple scattering refers to the interference of multiple scattering paths, not to be confused with sequential inelastic events originating from the same excitation source.” method implemented in the FEFF9 code <sup>39,46</sup> . Figure S1a–c shows good agreement in the L2-L3 spacing and well-preserved intensity ratios between the L2 and L3 peaks. Fine detail such as the splitting of the L3 peak in Fig. S1a is demonstrated as well. The limitations of this method include the treatment of the partially filled 3d bands in Cu(II), where the many-body effects, such as multiplet effects, require higher levels of theory beyond the mean-field level <sup>23,46</sup> . This can produce some spurious artifacts in the simulations, such as the L3 shoulder in the CuO simulation (Fig. S1c) which is not present in the experimental sample. Although the quadrupole contribution can play an important role in pre-edge features, distinct spectral features in the main edge regions are found to besensitiveto theoxidationstate fromfeatureimportanceanalysis. Therefore,neglectingthequadrupolecontributionwillnothaveasignificant impactinthisanalysis.TheoverallsuccessofFEFF9inproducingCuL-edge spectra allows Cu materials to serve as a model system for this type of automated analysis procedure. In this work we present a framework for predicting the Cu oxidation state that can be readily extended to other transition metals by acquiring a volume of corresponding simulated XAS data. Results Performance on simulated spectra Our RF model shows a high level of accuracy on a test set of simulated data. Figure 2a shows the R <sup>2</sup> plot of the predictions of this test set, which contains roughly 2400 spectra. The R <sup>2</sup> for this model is 0.85, and shows a visible high degree of correlation across all the well represented oxidation states. The largest errors come from integer valence misprediction, most commonly when a Cu(0) or Cu(I) spectrum is predicted as mixed valence. However, as shown in Fig. 2a, these mispredictions can often be differentiated from the accurate predictions by using the prediction standard deviation (described in the methods section). The feature importance plot from Fig. 2c offers insights into the origin of these errors. The model takes a small amount of information from the pre-edge and then bases its prediction mostly on the location and shape of the L3 peak. As Cu(0) and Cu(I) have L3 peaks at almost exactly the same energy, these are harder to differentiatethan Cu(II), which is red shifted by roughly 3 eV. Despite this difficulty, Cu(0) and Cu(I) areaccuratelyidentifiedfarmoreoftenthantheyaremispredicted,asshown in Fig. 2a. As can be seen from Fig. 2b, a full integer miss, i.e. a Cu(0) spectrum incorrectly called a Cu(I) spectrum, essentially never occurs. Additionally, as shown in Fig. 2a, b, the simulated mixture samples are frequently predicted with a high degree of accuracy, showing this model has significant potential in predicting mixed valence samples. Fig. 1 | A flow chart containing the four components of constructing the training data and random forest model. I, data is extracted from the Materials Project and scaled, aligned and processed to ensure internal consistency and accuracy to experiments. The colored boxes in I show how the materials project classifies the materials extracted and simulated by this work. II, the spectra are labeled by their Fig. 2 | The performance of the random forest model on the test set of simulated data. a R <sup>2</sup> plot, where each spot’s size is proportional to the number of spectra at that point and its color corresponds to the prediction’s standard deviation. b histogram of the absolute errors, with the vertical green line showing the locationof Model uncertainty metric In this work, we have developeda method for quantifying the uncertainty in our RF model’s prediction. This is done by examining the predictions of each of the 500 decision trees which comprise the random forest as well as oxidation state using the Materials Project oxidation state function “average oxidation states''. III, the dataset is augmented by creating mixture spectra made up of linear combinations of integer valence spectra. IV, the random forest model is trained and validated using test simulated data and experimental reference samples <sup>40</sup> . the root mean square error (RMSE) and the vertical red line showing the location of the mean absolute error (MAE). c feature importance of the random forest model plotted on the same energy axis as the spectra. the averaged value used as the final prediction. This uncertainty analysis is visualizedbygeneratingapredictionhistogram,asshowninFigs. 1 (IV)and 3d–f. Beyond the qualitative spread of predictions shown in the prediction histograms, the uncertainty can be understood quantitatively by calculating Fig. 3 | The performance of the random forest model on experimental Cu oxide EELS standards collected in this work. The top row (a–c) shows the raw spectrum with the cumulative integral of the raw spectrum, which is the input to the RF model, as an insert. The bottom row (d–f) shows the prediction histograms for each spectrum, where the gray bars correspond to the number of decision trees predicting the standard deviation of these predictions. This is indicated by the horizontal green line in the prediction histogram plots shown in Figs. 1 and 3, and is used here as the RF model’s internal uncertainty measurement. To leverage this quantitative uncertainty, the standard deviation can be used to filter out predictions that are highly uncertain, and therefore presumably less accurate. Figure S2 illustrates this concept, where a standard deviation threshold was imposed, and all predictions with a standard deviation higher than this value were discarded due to their high uncertainty. The standard deviation can be used as a powerful tool in determining significantly inaccuratepredictionsonsimulateddata,ascanbeseenwhenthethresholdisset at 0.35 (red rectangle in Fig. S2a, b). When this threshold is used, 15% of the predictions of our test set are higher than the threshold and discarded (Fig. S2a). However, imposing this threshold causes the RMSE of the remaining 85% of our test set to decrease 8% from the full test set value of 0.24 to 0.22 (Fig. S2b). Therefore, the 15% of the test set discarded by this method is comprised of predictions less accurate than average, showcasing the utility of this uncertainty metric in informing the accuracy of the model’s predictions for unknown samples. Validation using experimental spectra To test the RF model’s validity when applied to experiments, we used it to predict a set of metallic Cu and Cu oxide EELS standards taken with our home instrument as well as a series of XAS spectra extracted from the literature. The simulated spectra corresponding to the EELS standards were left out of both the training and test sets previously discussed, to simulate a situation where the model is being applied to previously unseen materials. These standards were smoothed using a Savitzy-Golay filter with a window sizeof1.5 eVandapolynomialorderof3.FromFig.S3itcanbeseenthatthe level of smoothing does not impact prediction accuracy. The smoothing window of 1.5 eV was selected as the default method due to qualitative observationsthatitremovedthevastmajorityofthenoisebutalsopreserved the overall shape of the spectrum (Fig. S4). From Fig. 3e, f it can be seen that the model has a high degree of accuracy when predicting Cu(I) and Cu(II), values over that range. The formal oxidation state is shown by the vertical blue line in each plot, while the predictions generated by the mean and median of the decision tree predictions are shown in red and orange, respectively. The standard deviation of the decision tree’s predictions is shown as a green horizontal line. rendering essentially perfect predictions for each of these standards, regardless of whether the mean or the median of the decision tree ensemble isusedastheprediction.However,Fig. 3dshowstheCu(0)standardappears to be slightly over estimated, with the mean prediction rendering a larger overestimate than the median, as the two predict 0.3 and 0.05, respectively. There are likely two factors responsible for the overprediction of Cu valence for metallic absorbers. First, as has been discussed above, random forestmodelsaveragepredictionsacrossindividualdecisiontrees,inthiscase 500. Therefore, it will always be more challenging for this model to predict Cu(0) as exactly zero, as all Cu atoms in our training data have non-negative valence. Consequently, any spread in the predictions will result in an overestimate. It is also worth noting that Fig. 3d shows that the mode of our prediction histogram contains Cu(0) by a factor of four over the next highest bar, and that the median is much closer to a prediction of Cu(0). A second factor may also partially explain this overestimate, which is that our Cu(0) likelyexperiencedsomesurfaceoxidation.Therefore,itmaybeassumedthat this material no longer had a true oxidation state of zero at the time of measurement. This is reflected in the spectrum, which can be seen to have visibly taken on some additional Cu(I) character relative to simulated Cu(0) and Cu(0) observed in XAS studies taken from the literature (Figure S5, <sup>21</sup> ). Specifically, our Cu(0) spectrum shows a drop in intensity of the two higher energy peaks in the L3 edge and an increase in intensity in the lowest energy peak, which are characteristic of surface oxidation leading to more visible Cu(I) character. This, combined with the logistics surrounding the attainment of our Cu(0) sample, the sample was not shipped in vacuum-sealed vial,andthefactthatwewereunabletoreduce thesample inthemicroscope, supports the supposition that our Cu(0) EELS sample has undergone some surface oxidation. Therefore, we believe that this prediction of a mixed valence material closer to Cu(0) than Cu(I) matches our experimental realities and a detailed examination of the experimental spectrum. However, it is also important to note that an XAS spectrum of Cu(0) extracted from the literature (Fig. 4d) is also overestimated by our model. Thisisunlikelytobearesultofsurfaceoxidation,bothfromaninstrumental Fig. 4 | The impact of energy misalignment on the prediction for EELS spectra taken in this work and XAS spectra extracted from the literature. Experimental EELS spectra are shown in (a–c) and literature XAS spectra are shown in (d–f) <sup>21</sup> . The spectra are shifted horizontally on the energy axis by the amount indicated in the x axis but are not changed in any other way. The scatter plot color corresponds to the prediction’s standard deviation. The horizontal orange dashed lines show the perspective and a qualitative examination of the spectrum, which shows a much more characteristic Cu(0) sample than our experimental EELS sample due to the relatively equal heights of the three L3 edge peaks and the L3 being lower in intensity than the L2 edge (Figs. S1 and S5). We attribute the overestimation of the literature Cu(0) mainly to the fact that our model does not allow for non-positive predictions, which causes any uncertainty in the prediction of Cu(0) to result in an overestimate, as discussed above. In addition to the experimental spectra predicted in Figs. 3, 4, 8 other spectra extracted from the literature were predicted using this model (Figs. S6 and S7) <sup>47–49</sup> . 7 of these 8 spectra were materials with a Cu(I) oxidation state and all are predicted to within 0.1 of Cu(I) when the edge alignment is correct, and most retain their accuracy when the edge is misaligned by 0.5 eV in either direction (Figure S7). The one Cu(II) material, CuS, is predicted as roughly 1.5. However, our model’s prediction is likely inaccurate due to this spectrum’s high intensity post the L3 region (Fig. S8). As the Cu(II) L3 edge is roughly 2eV lower in energy than Cu(I) and Cu(0), this increased intensity is likely mimicking a mixed valent spectrum, with this extra intensity appearing to come from absorption from a Cu(I) material. XAS is impacted by multiple photon scattering in very thick samples, which produces artificially high intensity in the tail of the L2,3 edge spectrum. Therefore, we believe that this was simply a spectrum of a very thicksample, leading to multiple scattering-induced changes to the spectrum that the model is unable to account for. Energy axis misalignment Given that we have performed a manual edge alignment correction to our training data, we also examine the impact of energy axis misalignment on location of the formal oxidation state of each material. The dashed black line indicates the location of the raw spectrum without any energy axis shifting. The red dashed line indicates the amount of energy axis shifting required to bring the experimental spectrum’s onset energy to the same value as its corresponding simulated spectrum in our dataset. our predictions of experimental spectra. To explore this, we created a set of experimental spectra where the onset energy was shifted by controlled amounts and tracked how this shift impacted the oxidation state prediction (Fig. 4). From Fig. 4a we see that the energy misalignment has the greatest impact on the Cu(0) sample, and an offset of −0.4 eV or greater causes an inflection point where the prediction jumps from 0.3 to nearly 0.5. Misalignment in the positive direction has a far less dramatic impact, and an energy shift of +0.5 eV produces essentially no change in the prediction. TheCu(I)sample,showninFig. 4b,ismorestable,witha shiftofnearly1 eV in either direction resulting in a change of <0.2 in the oxidation state prediction. In Fig. 4c, we see that Cu(II)’s prediction is virtually independent of shift plus/minus 1 eV, which is likely explained by the >2 eV gap between the onset energy of Cu(II) vs Cu(I) and Cu(0). To further examine the utility of our model when applied to experimental spectra, and to further study the impact of absolute energy shift, an additional experimental validation was done using an extracted set of XAS spectra of Cu oxides <sup>21</sup> . This set of spectra has been measured to be shifted fromtheexperimentalspectra usedto validatethismodelby −1.0 eV forthe Cu metal spectrum and −1.2 eV for the Cu2O and CuO spectra (Figs. S1andS5),andprovidesatestcaseforhowthemodelwillrespondtospectra with their energy axes significantly misaligned. From Fig. 4d–f, we can see that ourML modelproduces excellentresults fortheXAS spectra when they are correctly aligned to our training data (red line in Fig. 4d–f) and the results are robust even when the raw spectra are predicted, which are severely misaligned (black line in Fig. 4d–f). Whensuch a misalignment has occurred, the Cu(I) and Cu(II) spectra are predicted with near perfect accuracy, while the Cu(0) spectrum appears to be slightly over estimated, Fig. 5 | Performance of the random forest model on experimental mixed valence spectra. Mixtures of Cu(0) and Cu(I) (a) and mixtures of Cu(I) and Cu(II) (b). The scatter plot color corresponds to the prediction’s standard deviation. The dashed line indicates the location of a perfect prediction, while the vertical lines indicate the standard deviation of each prediction. The vertical lines show one standard deviation in the negative and positive direction. returning a prediction of around 0.5 when the correct alignment prediction is 0.28. It is worth reflecting that this prediction is still an overestimate, although closer to zero than our experimental EELS spectrum shown in Fig. 3d, reflecting this model’s propensity to overestimate Cu(0). With these observations, it is clear that the ML model trained on properly aligned spectracanachievehighlyaccurateresultsonspectra withsignificantenergy misalignment. Additionally, a potential avenue to determine the true alignment location is to vary the energy axis and seek out regions of consistent stability and low prediction standard deviation, as these regions are often associated with more accurate predictions for our experimental data. Prediction of experimental mixed valence samples Post successful proof of concept for our model on standard experimental samples, we turn our attention to a more valuable, but also more challenging, experimental case, the prediction of samples of mixtures of different oxidation states. As shown in Fig. 2a, our model has already demonstrated a high degree of accuracy on simulated mixed valence samples. Additionally, we show how smooth variance in simulated mixed valence materials excluded from the training data is captured by our model by showing simulated mixturesofCu(0),Cu(I),andCu(II)inFig.S9.Theimportanttest for the utility of this model in experimental spectra is how well this process works on experimental mixtures of oxidation states. Due to the difficulty in engineering a system with smoothly varying mixed valence states, and inherent uncertainties in quantifying such a system, we have generated mixed valence experimental spectra through linear combinations of our standard samples. The labeled value for these experimental mixtures is determinedbymultiplyingtheirformaloxidationstatebytheircontribution to the final mixture spectrum, as was done with the labeling for the simulated mixtures. For example, a mixture of 40% Cu(0) standard and 60% Cu2O standard would be calculated as follows: 0:00 � 0:4 þ 1:00 � 0:6 þ 2:00 � 0:0 ¼ 0:6 ð1Þ The results are shown in Fig. 5. From Fig. 5a, b, both plotscontain regions of high accuracy, particularly for mixtures of Cu(I) and Cu(II) (Fig. 5b). Mixtures of Cu(I) and Cu(II) are accurately predicted to within less than 0.1 in close to half of the mixture samples. However, there are also sections of low accuracy, particularly at inflection points where the prediction changes quickly. This is particularly true for mixtures of Cu(0) and Cu(I) (Fig. 5a), where the inflection region drives the prediction into a region of significant overestimation which is not recovered until the mixture becomes entirely Cu(I). However, in most cases the overall trend of the prediction is correct, as inboth Fig. 5a, b the highervalence sampleisfrequentlyidentified assuch until a pure sample is predicted, regardless of any absolute inaccuracies in the prediction. Bothmixedvalencecasestendtooverestimatetheoxidationstatewhen the higher oxidation state sample comprises greater than 50% of the mixture. We believe this to be a feature of the higher maximum intensity and sharperpeaks of higheroxidationstate spectra. ThiscanbeseeninFig. 3a–c, wheretheedgeintensityrelativetothetailofeachspectrumisshown.Thisis alsonoticeableinthecumulativespectrum,whichistheactualinputintothe model,(insetinFig. 3a–c)wherethelowerintensityintheCu(0)peakresults in an almost linear cumulative spectrum, while the higher intensity of Cu(I) and Cu(II) are very noticeable as a sharply increasing region in the L3 edge region of the cumulative spectrum. The higher intensity of the higher oxidation state may make the fine features of Cu(0) difficult to detect at low mixture fractions, as Cu2O and Cu(0) have their onset edges and L3 peaks at essentially the same energy. Additionally, The slight red shift in Cu(II) spectra yields an immediately noticeable feature for model identification, andasamplewhichis75%Cu(II)and25%Cu(I)maysimplybepredictedas a Cu(II) with a shoulder or other unusual transition, which is relatively common in the simulated data. We have also predicted random experimental mixtures of Cu(0), Cu2O, and CuO. This was done using mixtures of the literature XAS spectra and our experimental EELS data. The results are shown in Fig. S10a, c, respectively. They contain a characteristic overestimation as seen in the smoothlyvaryingmixed valent binary mixtures, which inspired thecreation of an empirical correction to random mixed valent spectra. The literature XAS predictions were used to train a linear regression model to predict the true oxidation state based on the prediction of the unknown spectrum. This was done using the mean, median, and standard deviation of the decision trees as input. The model was trained and validated using the random mixtures of the literature XAS data and tested on the predictions of the random mixtures of EELS data. Figure S10a, b shows the predictions on the training data, the literature XAS sample, and how the empirical correction improves the predictions. Upon generation of this empirical model, it was used to correct the predictions of mixtures of Cu(0), Cu2O, and CuO experimental EELS spectra. The results of applying this correction are shown in Figure S10c, d. The generation of this empirical model shows that, despite the challenges of predicting a pure Cu(II) in the empirical model’s predictions, the overall trend of the mixed valent overestimation can be captured and corrected. Comparison of prediction methods As Fig. 3d clearly shows that the median/mode of the decision trees yields a prediction much closer to Cu(0) for our experimental EELS Cu(0) sample, and Fig. 5 shows a characteristic overestimation in both types of experimental mixtures, it is worth exploring whether using the median or the mode as the prediction, rather than the mean, is more accurate overall. This idea is explored in detail in Fig. S11, which shows the full prediction Fig. 6 | Random forest model performance on simulated data augmented by Poisson noise. The impact of adding simulated Poisson noise to the test set on the model's R <sup>2</sup> (a) and RMSE (b). The standard deviation of the Poisson distribution used to generate the noise is shown in the x axis of each plot. The error bars denote the standard deviation of the R <sup>2</sup> /RMSE across 100 random states for that noise standard deviation value. histogram for various mixtures of Cu(0) and Cu2O (Fig. S11a–f) and compares the median, mean, and mode predictions directly (Fig. S11g–i). From Fig. S11 we see that, although the median is more accurate for pure Cu(0), it quickly begins to overestimate the oxidation state by a margin significantlygreaterthanthepredictionusingthemeanof thedecisiontrees. The mode prediction is even more extreme, returning exclusively integer oxidation state predictions, regardless of mixture composition. Therefore, for predictions of mixtures of oxidation states, the mean prediction is more likely to be accurate, and median/mode statistics can be helpful in instances where a pure oxidation state is assumed, particularly if the material is expected to be metallic. Impact of noise on simulated data To test the impact of noise on the simulated data, random Poisson noise was added to each simulated spectrum in the test set to produce a test set augmented by noise. To ensure that this process echoed our approach on experimentalspectraas muchas possible, the simulated spectra, which are on a 0.1 eV resolution, were re-sampled using scipy’s 1d interpolation function with a higher resolution of 0.03 eV, matching that of our experimental samples. Noise was then added to the interpolated spectra, and these spectra were then smoothed in the same method as the experimental spectra and integrated to produce a cumulative spectrum (Fig. S4). These spectra were then predicted by the model to test its accuracy on noisy data. As shown in Fig. 6a, the simulated data are relatively sensitive to noise augmentation, and the addition of a small amount of Poisson noise resulted in an increase in RMSE from 0.24 to 0.3 as compared to results from the noiseless spectra. Further increase in noise led to an even larger RMSE, however the decline in accuracy becomes less sharp than the initial slope. A similar trend is seen in Fig. 6b for R <sup>2</sup>, where a drop in R <sup>2</sup> is observed after adding a small amount of noise. However, this decline is less sharp than the increase in RMSE, and adding additional noise has a more pronounced effect on R <sup>2</sup> than subsequent noise does on RMSE. Despite this observation, our experimental spectra, which have a higher volume of noise than the simulated low noise case, do not appear to be as affected by noise as the simulated noisy spectra (Fig. 3). An examination of the quantitative noise level of the experimental spectra can be found in Fig. S12, which shows that the noise STD for the experimental EELS spectra is between 0.03 and 0.05. Additionally, the selection of the random seed for the addition of noise appears to have a significant impact on the overall accuracy of the noisy test set. This is shown with the error bars in Fig. 6a, b, which represent the standard deviation across 100 different random noise seed states. The presented RMSEs and R <sup>2</sup> s are the average values across these 100 random states. A detailed examination of the noise profiles for these higher error random states shows that in these spectra the region around the baseline experiences noise spikes that mimic features around the baseline region, similar to how an inaccurate power law subtraction of an EELS spectrum baseline appears. This observation further emphasizes that the accuracy of thismodelreliesheavilyontheaccurateidentificationand subtractionofthe baseline. Discussion In this work, we have built a random forest model trained on simulated L-edge XAS spectra which is capable of predicting the oxidation state of copper based on its L-edge XAS/EELS spectrum. We have also developed a database of simulated Cu XAS spectra containing 3500 unique materials that have been accurately aligned to experimental spectra, and augmented this database with 6000 simulated mixture spectra. Our random forest model attains an R <sup>2</sup> of 0.85 on simulated data with an RMSE of 0.24 and has beenshowntoaccuratelypredictexperimentalspectratakenfromourhome institution and from the literature. Additionally, this model has proven successful at predicting mixed valence samples, showing its applicability to tracking the oxidation state of Cu during in-situ experiments where oxidation state is changing fluidly. Beyond this model’s utility to Cu materials, we have also developed a broader methodology which can be extended to the analysis of other materials by acquiring a spectral database of accurate simulated L-edge spectra for the corresponding material. Methods Training set generation In this work, simulated FEFF9 XAS spectra of Cu materials were extracted from the Materials Project. This initial extraction produced a dataset of site averaged spectra for 1533 materials, which contains the 59 materials shown in Fig. 1I labeled as neither predicted stable nor synthesized <sup>39</sup> . To increase the volume of our training data, an additional 2000 structures were selected by searching the Materials Project for all Cu containing materials that had either been previously synthesized or were predicted to be stable by theory <sup>40</sup> . This choice screens a broad material space that is likely accessible to experiments. We computed 2000 site averaged spectra using the Lightshow workflow <sup>50</sup> and FEFF9 <sup>46</sup> . The combination of this augmentation step and the initial extraction of L-edge spectra already generated by the Materials Project provided 1199 materials that both have been experimentally synthesized and are predicted to be stable (Fig. 1I). For each structure, unique Cu sites are determined by the space group symmetry. Then site-specific spectrawerecalculatedusingFEFF9.TheL2 andL3 spectraforeachsitewere combined into the L2,3 spectrum by summing the L2 and L3 spectra, after first interpolating onto the same energy grid (Figure S13). The site averaged spectrum is calculated from the weighted sum of site-specific spectra based on the multiplicity of the unique sites in the unit cell. The oxidation states of the site averaged spectra were determined using the Materials Project’s “average oxidation states” function <sup>40</sup> . Despite this averaging procedure, >93% of the site-averaged spectra retained integer valence. When FEFF9 failed to converge for some, but not all, of the sites in a material, converged site spectra were averaged leaving out the failed spectra. To prepare our training set of 3500 site averaged spectra, several additional steps were performed. This workflow is summarized in Fig. 1. First, spectra were interpolated to ensure they were all on a 0.1 eV energy resolution. Second, the non uniformity in the energy range of the L3 edge, specifically at the starting point, was addressed by fitting a 6th order polynomial to connect the lowest energy point to [925, 0] (i.e., vanishing intensity at 925 eV) for every spectrum (see Figure S14). The spectra were then aligned to ensure their onset edges were in the same general energy range as those seen in experimental EELS Cu materials, as it was observed that FEFF9 was producing a systematic misalignment in the absolute energy of the L2,3 edge. To accomplish this alignment, two systematic errors were corrected. First, a high degree of onset energy variability was observed across zero valence materials, which would be expected to all have similar onset energies. Second, the absolute energyof the simulated spectra were severaleVoff fromexperimentalstandards.Bothoftheseissueswere fixedsimultaneously by our automated alignment procedure. Below is a brief summary of our edge alignment procedure following the ΔSCF method <sup>51,52</sup>, as shown in equation (2): Ealign ¼ Eraw þ ðϵcore � ϵFermiÞ þ ðϵXCH - ϵGSÞ þ Δ ð2Þ where Eraw and Ealign are the excitation energies before and after alignment. In order to correct the inaccuracy in the calculated excitation energy, we scale the raw spectrum by the difference between the Fermi energy (ϵFermi) and Cu 2p core level (ϵCore) and by the total energy difference between the core-hole excited state (ϵXCH) and the ground state (ϵGS). In the core-hole excited state, the core electron is placed at the bottom of the conduction band, known as the excited core-hole (XCH) method. After this alignment, there is a single empirical constant (Δ) calibrated on a reference system to account for the residual discrepancy between theory and experiment. In our study, ϵFermi is takenfromthe FEFF9outputcorrespondingto k = 0,where k is the photoelectron wave number. ϵCore is set to -916.8226 eV, which is determined bytheVASPestimationoftheenergyof a2pcoreholeinCu <sup>52,53</sup> . (ϵXCH−ϵGS) was computed using the VASP code base, and the values are −650.888 eV, −650.748 eV, and −651.945 eV for Cu, Cu2O, and CuO, respectively <sup>53</sup> .Inprinciple,oneshouldperformVASPcalculationsforallthe systemsinthedatabase.However,thiswillleadtoaveryhighcomputational cost, which is impractical for the scope of this study. Therefore, we treated (ϵXCH - ϵGS) as constant for each oxidation state, using the Cu, Cu2O, and CuO values listed above for Cu(0), Cu(I), and Cu(II) spectra respectively. This resulted in a simplification of equation (2), where (ϵXCH−ϵGS) + Δ is treatedasaconstant, δox,withdifferentvaluesforeachoxidationstate.These are:1849.06 eV, 1849.33eV, and 1846.87 eV for Cu with oxidation state of 0, +1, and +2, respectively, which aligns simulated Cu, Cu2O, and CuO spectra to their corresponding EELS experimental spectrum. For the small subset of materials that were classified as mixed valence, they were aligned based on whichever integer oxidation state they were closest to. It is important to note that this alignment procedure is not aligning the edge to the exact location of the Cu/Cu2O/CuO edges for all Cu 0, +1, and +2 spectra (i.e. forcing every Cu(II) spectrum to start at 930.2 eV, where the CuO edge is located). This alignment procedure computes a correction based on FEFF9’s Fermi energy prediction and then uses the energy gap between the simulated spectrum of either Cu metal, Cu2O, and CuO, post Fermi correction, and the corresponding experimental spectrum to scale all spectra with that oxidation state. For example, not every Cu(II) spectrum is at the same edge energy, and manyof them are quitedifferent based on their initial location post Fermi energy correction. The relative energy alignment from FEFF9 within an oxidation state is often preserved, particularly for Cu(I)andCu(II)materials,andthisscalingusingtheexperimentalspectrais done to bring the energy axis to experimental relevance. Without this correction, the energy axis for the FEFF9 spectra is misaligned by multiple eV and any experimental prediction is impossible. An example of this alignment procedure is shown in Figure S15. Our spectral dataset was then augmented by generating simulated mixed valence samples (see step III in Figs. 1 and S16). To accomplish this, 300 random sets of spectra were drawn from the integer dataset, each draw taking a random Cu(0), Cu(I) and Cu(II) site averaged spectrum. Each of these 300 sets of 3 integer spectra were then linearly combined to mimic mixed valence structures. For each set of three spectra, 20 random fractions of each material were combined to produce a simulated mixed valence spectrum. To ensure an even spread of mixed valences, 100 sets were combinations of Cu(0) and Cu(I), 100 were combinations of Cu(I) and Cu(II),and 100werecombinationsofCu(0),Cu(I) and Cu(II).Thismixture produced a final dataset of roughly 9500 spectra with data well distributed from Cu(0) to Cu(II) (step III in Figs. 1 and S16). Our training and test sets were generated by separating classes of mixtures, rather than a random 75/ 25 split across the full 9500 spectra dataset. To accomplish this, we tracked the compositions of each random mixture, and ensured each composition was fully placed in either the training or test set. For example, an arbitrary mixture of Cu(0), Cu(I), and Cu(II) would have 20 random proportions of each material in our full dataset, and our train/test split ensured all 20 of these were either in training or test. This ensures the model is not biased by seeing a 0.3, 0.3, and 0.4 mixture of the above materials in training and then tested on a mixture of 0.2, 0.3, and 0.5 of the above compounds, which results in a very similar spectrum. To achieve the best ML model performance, we have tested different spectral representations, including the spectrum itself, its first and second derivative, and the cumulative integral of the spectrum. We found that the best model performance was achieved with the cumulative integral with intensitynormalizedto1.Inaddition,usingthecumulativeintegral,referred to as a cumulative spectrum in this work, as input feature can ensure consistency in the absolute scale of the EELS spectrum. This representation can simplify intensity scaling, as experimental post processing decisions and noise can create a high degree of variability in spectral intensity. The cumulative spectrum approach is insensitive to the absolute scale of the spectrum, although it does require an accurate identification and subtraction of the baseline for experimental spectra. Random forest modeling Random forest (RF) models for this work were trained using Scikit-learn’s RandomForestRegressor model <sup>54</sup> . The number of trees was fixed at 500, with all features available and max depth unfixed. The dataset was split into train and test components using a 75/25 random train test split functionfromScikit-learn. Thestructureofthismodelallows fortheinput of a raw spectrum of arbitrary min and max energy and energy scale. The model then takes the input spectrum and interpolates it to a 0.1 eV resolution from 925 to 970 eV to ensure the consistency of the energy grid used in the training data. Spectral smoothing is then applied using a Savitzy-Golay filter from scipy <sup>55</sup> . The smoothing step is done before the interpolation provided that the inputted spectrum is on an evenly spaced energyscale.The cumulativeoperationonthespectrum isthen performed and this spectrum is the input of the model. The trained RF model is an ensemble of 500 individually trained decision trees, and returns the predictions of each decision tree. A simple average of inferred valence values from each tree is taken as the final prediction, although median and mode predictions can be returned as well. The mode prediction is determined by finding the highest count on a histogram with bin widths of 0.2. The mode is determined by finding the center of the highest bin, meaning integer valence predictions will be returned as 0.1 higher than the integer valence (i.e a prediction of Cu(0) will have a mode of 0.1 assigned to it, as the bin will range from0.0 to 0.2).The standard deviationof these 500predictions can approximate the model’s internal confidence in its prediction, and is visualizedinthepredictionhistograminFigs. 1, 3, andS4,thelast ofwhich illustrates the entirety of the processing steps performed on an input spectrum. Experimental EELS To validate the utility of this model on experimental data, experimental EELS spectra of standard reference samples were measured, including Cu metal, Cu2O, and CuO. Cu metal was purchased from Sigma-Aldrich with 99.999% purity. Cu2O and CuO were purchased from Sigma-Aldrich with 99.99% purity. The Cu2O sample was measured using a vacuum holder to prevent oxidation. However, the Cu metal sample was not delivered in a vacuum sealed container, and under the assumption that surface oxidation had already occurred, a vacuum holder was not used for this sample. Using the TEAM I microscope, a double-corrected Thermo Fisher Titan microscope, we acquired monochromated reference data for these samples at roughly 0.2 meV resolution. Data were collected at 300kV with a semiconvergence angle of 17 mrad and a collection angle of 82 mrad. All data was collected using a Gatan Continuum spectrometer equipped with a K3IS detector operated in electron counting mode. Spectra were baseline subtractedusingtheGMSDigitalMicrographsoftwarepackage,andspectra were taken using dual EELS to dynamically remove shifts in the reference elastic energy and deconvolved with the simultaneously measured zero-loss region to mitigate artifacts from electrons experiencing multiple scattering events. The deconvolution of multiple scattering is essential to ensure the experimental EELS spectra are comparable to XAS. Data availability The spectral dataset and the code to generate and analyze the random forest [modelpresentedin this study can be found intheGitHub repository https://](https://github.com/smglsn12/ML_XAS_EELS) [github.com/smglsn12/ML_XAS_EELS.](https://github.com/smglsn12/ML_XAS_EELS) Received: 2 September 2023; Accepted: 30 August 2024; References 1. Dalle, K. E. et al. Electro- and solar-driven fuel synthesis with first row transition metal complexes. Chem. Rev. 119, 2752–2875 (2019). 2. Mccusker, J. K. Electronic structure in the transition metal block and its implications for light harvesting. Science 363, 484–488 (2019). 3. Johnstone, T.C., Suntharalingam, K., Lippard, S.J. Third row transition metals for the treatment of cancer. Philos. Trans. A Math. Phys. Eng. Sci. 373, 20140185 (2015). 4. Batson, P. E. Simultaneous STEM imaging and electron energy-loss spectroscopy with atomic-column sensitivity. Nature 366, 727–728 (1993). 5. Browning, N. D., Chisholm, M. F. & Pennycook, S. J. Atomicresolution chemical analysis using a scanning transmission electron microscope. Nature 366, 143–146 (1993). 6. Yang, G. et al. Investigation of the oxidation states of Cu additive in colored borosilicate glasses by electron energy loss spectroscopy. J. [Appl. Phys. https://doi.org/10.1063/1.4903955 (2014).](https://doi.org/10.1063/1.4903955) 7. Gazquez, J. et al. Applications Of STEM-EELS To Complex Oxides (Elsevier Ltd, 2017). 8. Kociak, M. & Stephan, O. Mapping plasmons at the nanometer scale [in an electron microscope. R. Soc. Chem. https://doi.org/10.1039/](https://doi.org/10.1039/c3cs60478k) [c3cs60478k (2014).](https://doi.org/10.1039/c3cs60478k) 9. Bai, Y. et al. Promoting nickel oxidation state transitions in single-layer NiFeB hydroxide nanosheets for efficient oxygen evolution. Nat. [Commun. https://doi.org/10.1038/s41467-022-33846-0 (2022).](https://doi.org/10.1038/s41467-022-33846-0) 10. Kubin,M.etal.Probingtheoxidationstateoftransitionmetalcomplexes: a case study on how charge and spin densities determine Mn L-edge Xray absorption energies. Chem. Sci. 9, 6813–6829 (2018). 11. Henderson,G.S.,Groot,F.M.F.,Moulton,B.J.A. SpectroscopicMethods in Mineralogy and Materials Sciences, pp. 75–138. (De Gruyter, 2014). 12. Yu, L., Li, M., Wen, J., Amine, K., Lu, J. (S)TEM-EELS as an advanced characterization technique for lithium-ion batteries. R. Soc. Chem. [https://doi.org/10.1039/d1qm00275a (2021).](https://doi.org/10.1039/d1qm00275a) 13. Batson, P. E., Dellby, N. & Krivanek, O. L. Sub-aångstrom resolution usingaberrationcorrectedelectronoptics. Nature 418,617–620(2002). 14. Hart, J.L. et al. Revealing local order via high energy EELS. Mater. [Today Nano https://doi.org/10.1016/j.mtnano.2022.100298 (2023).](https://doi.org/10.1016/j.mtnano.2022.100298) 15. Akgul, G., Akgul, F. A. & Ufuktepe, Y. Investigation of thickness dependence on electronic structures of iron and nickel thin films by L-edge X-ray absorption spectroscopy. Vacuum 99, 211–215 (2014). 16. Keast, V. J., Scott, A. J., Brydson, R., Williams, D. B. & Bruley, J. Electronenergy-loss near-edgestructurea tool for the investigation of electronic structure on the nanometre scale. J. Microsc. 203, 135–175 (2001). 17. Cressey, G., Henderson, C. M. B. & Van Der Laan, G. Use of L-edge Xray absorption spectroscopy to characterize multiple valence states of 3d transition metals; a new probe for mineralogical and geochemical research. Phys. Chem. Miner. 20, 111–119 (1993). 18. Zhang, S., Livi, K. J. T., Gaillot, A. C., Stone, A. T. & Veblen, D. R. Determination of manganese valence states in (Mn3+, Mn 4+) minerals by electron energy-loss spectroscopy. Am. Mineral. 95, 1741–1746 (2010). 19. Van Aken, P. A. & Liebscher, B. Quantification of ferrous/ferric ratios in minerals: new evaluation schemes of Fe L23 electron energy-loss near-edge spectra. Phys. Chem. Miner. 29, 188–200 (2002). 20. Garvie,LaurenceA.J.&Buseck,P.R.Ratiosofferroustoferricironfrom nanometre-sized areas in minerals. Lett. Nat. 396, 667–670 (1998). 21. Grioni, M., Van Acker, J. F., Czyzyk, M. T. & Fuggle, J. C. Unoccupied electronic structure and core-hole effects in the x-ray-absorption spectra of Cu20. Phys. Rev. B 45, 3309–3318 (1992). 22. Shang, H. et al. Engineering unsymmetrically coordinated Cu-S1N3 single atom sites with enhanced oxygen reduction activity. Nat. [Commun. https://doi.org/10.1038/s41467-020-16848-8 (2020).](https://doi.org/10.1038/s41467-020-16848-8) 23. Groot, F.D. Multiplet effects in X-ray spectroscopy. Coord. Chem. [Rev. https://doi.org/10.1016/j.ccr.2004.03.018 (2014).](https://doi.org/10.1016/j.ccr.2004.03.018) 24. Timoshenko, J., Lu, D., Lin, Y. & Frenkel, A. I. Supervised machinelearning-based determination of three-dimensional structure of metallic nanoparticles. J. Phys. Chem. Lett. 8, 5091–5098 (2017). 25. Carbone, M.R., Yoo, S., Topsakal, M., Lu, D. Classification of local chemical environments from x-ray absorption spectra using [supervised machine learning. Phys. Rev. Materi. https://doi.org/10.](https://doi.org/10.1103/PhysRevMaterials.3.033604) [1103/PhysRevMaterials.3.033604 (2019).](https://doi.org/10.1103/PhysRevMaterials.3.033604) 26. Torrisi, S.B. et al. Random forest machine learning models for interpretable X-ray absorption near-edge structure spectrum[property relationships. npj Comput. Mater. https://doi.org/10.1038/](https://doi.org/10.1038/s41524-020-00376-6) [s41524-020-00376-6 (2000).](https://doi.org/10.1038/s41524-020-00376-6) 27. Zheng, C. et al. Automated generation and ensemble-learned [matching of X-ray absorption spectra. npj Comput.Mater. https://doi.](https://doi.org/10.1038/s41524-018-0067-x) [org/10.1038/s41524-018-0067-x (2018).](https://doi.org/10.1038/s41524-018-0067-x) 28. Bonnet, N. Multivariate statistical methods for the analysis of microscope image series: applications in materials science. J. Microsc. 190, 2–18 (1998). 29. Bonnet, N. Artificial intelligence and pattern recognition techniques in microscope image processing and analysis. Adv. Imag. Electron Phys. 114, 1–77 (2000). 30. Bosman, M., Watanabe, M., Alexander, D. T. L. & Keast, V. J. Mapping chemical and bonding information using multivariate analysis of electron energy-loss spectrum images. Ultramicroscopy 106, 1024–1032 (2006). 31. Kotula, P.G., Keenan, M.R. Application of multivariate statistical analysis to STEM X-ray spectral images: Interfacial analysis in microelectronics. Microsc. Microanal. 12, 538–544 (2006). 32. Cueva, P., Hovden, R., Mundy, J.A., Xin, H.L., Muller, D.A. Data processing for atomic resolution electron energy loss spectroscopy. Microsc. Microanal. 18, 667–675 (2012). 33. Bonnet, N. & Nuzillard, D. Independent component analysis: a new possibility for analysing series of electron energy loss spectra. Ultramicroscopy 102, 327–337 (2005). 34. Bosman, M. et al. Two-dimensional mapping of chemical information [at atomic resolution. Phys. Rev. Lett. https://doi.org/10.1103/](https://doi.org/10.1103/PhysRevLett.99.086102) [PhysRevLett.99.086102 (2007).](https://doi.org/10.1103/PhysRevLett.99.086102) 35. Li, R. et al. Deciphering phase evolution in complex metal oxide thin films via high-throughput materials synthesis and characterization. [Nanotechnology https://doi.org/10.1088/1361-6528/acad09 (2023).](https://doi.org/10.1088/1361-6528/acad09) 36. Chatzidakis, M., Botton, G.A. Towards calibration-invariant [spectroscopy using deep learning. Sci. Rep. https://doi.org/10.1038/](https://doi.org/10.1038/s41598-019-38482-1) [s41598-019-38482-1 (2019).](https://doi.org/10.1038/s41598-019-38482-1) 37. Ji, Z., Hu, M. & Xin, H. L. MnEdgeNet for accurate decomposition of mixed oxidation states for Mn XAS and EELS L2,3 edges without reference and calibration. Sci. Rep. 13, 14132 (2023). 38. del-Pozo-Bueno, D., Kepaptsoglou, D., Peiró, F. & Estradé, S. Comparative of machine learning classification strategies for electron energy loss spectroscopy: Support vector machines and artificial neural networks. Ultramicroscopy 253, 113828 (2023). 39. Chen,Y. et al. Databaseof ab initio L-edge X-rayabsorption nearedge [structure. Scientific Data https://doi.org/10.1038/s41597-021-](https://doi.org/10.1038/s41597-021-00936-5) [00936-5 (2021).](https://doi.org/10.1038/s41597-021-00936-5) 40. Jain, A. et al. Commentary: The Materials Project: A Materials Genome Approach To Accelerating Materials Innovation (American Institute of Physics Inc., 2013). 41. R.F., Egerton. Electron Energy-Loss Spectroscopy in the Electron Microscope, 3rd edn. (Springer, 2011) 42. Moreno, M. S., Jorissen, K. & Rehr, J. J. Practical aspects of electron energy-loss spectroscopy (EELS) calculations using FEFF8. Micron 38, 1–11 (2007). 43. Bhagat,M.etal.Review—multifunctionalcoppernanoparticles:synthesis and applications. ECS J. Solid State Sci. Technol. 10, 063011 (2021). 44. Gawande, M.B. et al. Cu and Cu-Based Nanoparticles: Synthesis and Applications in Catalysis (American Chemical Society. 2016). 45. Laffont, L. et al. High resolution EELS of Cu-V oxides: Application to batteries materials. Micron 37, 459–464 (2006). 46. Rehr, J. J., Kas, J. J., Vila, F. D., Prange, M. P. & Jorissen, K. Parameter-free calculationsof X-rayspectrawithFEFF9. Phys.Chem. Chem. Phys. 12, 5503–5513 (2010). 47. Rudyk, B. W., Blanchard, P. E. R., Cavell, R. G. & Mar, A. Electronic structure of lanthanum copper oxychalcogenides LaCuOCh (Ch=S, Se, Te) by X-ray photoelectron and absorption spectroscopy. J. Solid State Chem. 184, 1649–1654 (2011). 48. Goh, S. W., Buckley, A. N., Lamb, R. N., Rosenberg, R. A. & Moran, D. The oxidation states of copper and iron in mineral sulfides, and the oxides formed on initial exposure of chalcopyrite and bornite to air. Geochim. Cosmochim. Acta 70, 2210–2228 (2006). 49. Blanchard, P. E. R., Cavell, R. G. & Mar, A. Electronic structure of ZrCuSiAs and ZrCuSiP by X-ray photoelectron and absorption spectroscopy. J. Solid State Chem. 183, 1536–1544 (2010). 50. Carbone, M. R. et al. Lightshow: a Python package for generating computational x-ray absorption spectroscopy input files. J. Open Source Softw. 8, 5182 (2023). 51. England, A. H. et al. On thehydration andhydrolysis of carbon dioxide. Chem. Phys. Lett. 514, 187–195 (2011). 52. Meng, F. et al. Multicode benchmark on simulated Ti K-edge x-ray [absorption spectra of Ti-O compounds. Phys. Rev. Mater. https://doi.](https://doi.org/10.1103/PhysRevMaterials.8.013801) [org/10.1103/PhysRevMaterials.8.013801 (2024).](https://doi.org/10.1103/PhysRevMaterials.8.013801) 53. Kresse, G., Furthmiiller B ’, J. Efficiency of ab-initio total energy calculations for metals and semiconductors using a plane-wave basis set. Technical Report (1996) 54. Pedregosa, F. et al. Scikit-learn: machine learning in python gaël varoquaux bertrand thirion vincent dubourg alexandre passos PEDREGOSA, VAROQUAUX, GRAMFORT ET AL. Matthieu Perrot. J. Mach. Learn. Res. 12, 2825–2830 (2011). 55. Virtanen, P. et al. SciPy 1.0: fundamental algorithms for scientific computing in python. Nat. Methods 17, 261–272 (2020). Acknowledgements This work was primarily funded by the US Department of Energy in the program “4D Camera Distillery: From Massive Electron Microscopy Scattering Data to Useful Information with AI/ML.” Work at the Molecular Foundry was supported by the Office of Science, Office of Basic Energy Sciences, of the U.S. Department of Energy under Contract No. DE-AC02-05CH11231. This research used Theory and Computation resources of the Center for Functional Nanomaterials (CFN), which is a U.S. Department of Energy Office of Science User Facility, at Brookhaven National Laboratory under Contract No. DESC0012704. The training and instrumentation support necessary to operate the TEAM I microscope and acquire the experimental EELS data presented in this work was provided by Dr Chengyu Song. Author contributions S.P.G. took the experimental data, generated the simulated XAS dataset, conducted the machine learning training and analysis and wrote the manuscript. D.L. provided training and expertize necessary to generate the simulated dataset. J.C. provided experimental EELS knowledge, microscope training, led the collaboration and designed the scope of this work. All authors read, edited, and approved the final manuscript. Competing interests The authors declare no competing interests. Additional information Supplementary information The online version contains supplementary material available at [https://doi.org/10.1038/s41524-024-01408-1.](https://doi.org/10.1038/s41524-024-01408-1) Correspondence and requests for materials should be addressed to Samuel P. Gleason or Jim Ciston. Reprints and permissions information is available at [http://www.nature.com/reprints](http://www.nature.com/reprints) Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this [licence, visit http://creativecommons.org/licenses/by/4.0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2024

섹션 본문 42문단 · 52,825자

(제목 없음)

1Electron energy loss spectroscopy (EELS) and X-ray absorption spectroscopy (XAS) provide detailed information about bonding, distributions and locations of atoms, and their coordination numbers and oxidation states.However, analysis of XAS/EELS data often relies on matching an unknown experimental sample to a series of simulated or experimental standard samples.This limits analysis throughput and the ability to extract quantitative information from a sample.In this work, we have trained a random forest model capable of predicting the oxidation state of copper based on its L-edge spectrum.Our model attains an R 2 score of 0.85 and a root mean square valence error of 0.24 on simulated data.It has also successfully predicted experimental L-edge EELS spectra taken in this work and XAS spectra extracted from the literature.We further demonstrate the utility of this model by predicting simulated and experimental spectra of mixed valence samples generated by this work.This model can be integrated into a real time EELS/XAS analysis pipeline on mixtures of copper containing materials of unknown composition and oxidation state.By expanding the training data, this methodology can be extended to data-driven spectral analysis of a broad range of materials.

Introduction

2Due to their wide range of accessible oxidation states and materials applications, the ability to determine the oxidation state of third row transition metals is essential to a wide variety of applications.These include the development of catalysts [1], photovoltaic devices [2], and biotechnology [3].Core level spectroscopy is often used to probe transition metal oxidation states, and two main types are electron energy loss spectroscopy (EELS) and X-ray absorption spectroscopy (XAS).EELS provides detailed atomic scale information, such as oxidation state, coordination number and local symmetry of a nanomaterial [4,5].When probing nanomaterials, EELS is often combined with scanning transmission electron microscopy (STEM).In STEM-EELS, an electron beam is scanned over an area of a sample and a full spectrum is acquired and stored at each probe position.This technique is particularly valuable in the study of nanomaterials due to its combination of high spacial and high energy resolution.[6][7][8].Like EELS, XAS has also attained wide usage in determining oxidation state and local environment in nanomaterials [9][10][11].XAS, however, is typically limited to a spacial resolution of a few nanometers [12], rather than the sub angstrom spacial resolution possible with STEM-EELS [13].The main advantages of XAS compared to EELS for core-loss spectroscopy are the ability to attain higher signal to noise ratios (SNR) and higher energy resolution, particularly at higher excitation energies [14], and functionality on thicker samples for hard x-ray excitation [15].Due to the myriad use cases for both techniques, they are commonly applied to the nanoscale study of materials containing third row transition metals.However, since EELS and XAS spectra encode the electronic properties of the sample in an abstract way, extracting physical descriptors is a non-trivial task in spectral analysis.

3Therefore, quantitative spectral analysis is often the rate limiting step in materials characterization, and can typically only be conducted by trained experts.This is especially true of L-edge spectra of transition metals, where variations in oxidation state can manifest in small shifts in edge location, L 2 /L 3 ratio and peak width that are not immediately obvious to a non expert, particularly for samples containing multiple oxidation states [16].Oxidation state assignment is typically done by mapping the unknown spectrum to known experimental or simulated standards, a process which can be time intensive and requires significant domain knowledge.Particularly challenging to analyze are mixed valence materials, which are often interpreted as combinations of spectra of integer valence structures [17].The prevailing solution to this problem is to fit integer valence spectra to the unknown spectrum using least squares.This allows a user to input known standards and determine the coefficients of a linear combination of the standard spectra that reproduce the experimental spectrum [17][18][19][20].

4Least squares fitting has allowed quantitative oxidation state analysis of mixed valence samples, and is widely implemented as the state-of-the-art procedure for quantitative analysis of unlabeled XAS/EELS L-edge data.However, in the case of experimental standards, it has a few serious limitations.First, this procedure requires fresh standards to be taken for each instrument, and often each day, as changes in detector setup and alignment can lead to non trivial changes in the spectra.Second, this procedure is highly sensitive to experimental variation in the acquisition of the standard samples.Contamination with materials of other oxidation state, surface oxidation and beam damage can have a significant impact on the shape of the standard spectrum, and therefore interfere with the fitting of the unknown sample.Additionally, inconsistencies in standard spectrum processing, such as baseline subtraction or the incomplete deconvolution of multiple scattering from the standard sample, can have a similar impact.Third, the presence of any oxidation state or coordination environment unaccounted for by the standards will not only be missed by the prediction of the makeup of the material, potentially missing an important fundamental discovery, but will also lead to an inaccurate representation of the oxidation state as the standard components are forced to represent a signal not originating from any of them.In a similar vein, experimental standards must be taken for every material expected to be present in order to perform the oxidation state analysis.For example, a standard for CuO may not be suitable for an experiment involving CuS due to non trivial differences between the spectra, although they are both a Cu(II) oxidation state [21,22].Simulated standards suffer from fewer experimental limitations, but instead are limited by the level of approximations used in the theory and often can not perfectly reproduce experimental spectra.This can cause systematic errors leading to significant misidentifications, particularly when applied to noisy experimental spectra or experimental spectra more challenging to simulate.It is rare for simulated standards for L-edge transition metal spectra to be quantitatively accurate enough to fit an unknown experimental spectrum using least squares fitting [23].Instead, these are used to qualitatively match components of an unknown spectrum.Therefore, there is a need for a procedure that can determine oxidation state from XAS/EELS L-edge data that is more robust than the least squares fitting of a handful of standard spectra.

5An avenue for a more broadly applicable automated analysis procedure is machine learning (ML).Despite some recent advancements in automated L-edge XAS/EELS analysis of transition metals using ML approaches [24], overall, the transition metal K-edge has received more focus from the ML community [25][26][27].Numerical analysis of L-edge transition metal XAS/EELS data has mainly been performed using principle component analysis (PCA) to reduce the dimensionality of the spectrum.This field has been well developed, comprising numerous applications of PCA on L-edge XAS/EELS data [28][29][30][31].Additionally, PCA dimenionality reduction procedures have been used to successfully de-noise low SNR core loss EELS data [32][33][34].PCA has also been extended into analysis of oxidation states.Applying component analysis to a mixed valence XAS/EELS spectrum can result in components that mimic the unique oxidation states present.This can be used as a qualitative estimation of the different oxidation states present in a sample, however, it is difficult to ensure each of the resulting components match the pure form of an oxidation state.Therefore, the lack of rigorous physical interpretation of the components makes any quantitative analysis challenging [35].

6Supervised machine learning approaches have found success predicting oxidation states in manganese and iron samples, using neural networks and support vector machines [36][37][38].However, these models were trained on a small subset of materials and, with the exception of [37] on Mn spectra, only focused on integer valence states.Therefore, the more complicated question of L-edge spectra oxidation state regression of an arbitrary Cu material containing a wide range of oxidation states has not been thoroughly explored.The lack of focus on mixed valence structures generally is especially notable, as such a model is necessary to analyze an in-situ experiment where 1000s of spectra are generated quickly with minor variations in oxidation state.Fig. 1 A flow chart containing the four components of constructing the training data and random forest model.I, data is extracted from the Materials Project and scaled, aligned and processed to ensure internal consistency and accuracy to experiments.The colored boxes in I show how the materials project classifies the materials extracted and simulated by this work.II, the spectra are labeled by their oxidation state using the Materials Project oxidation state function "average oxidation states".III, the dataset is augmented by creating mixture spectra made up of linear combinations of integer valence spectra.IV, the random forest model is trained and validated using test simulated data and experimental reference samples [39].

7This work has developed a supervised ML model capable of conducting a regression task on an unlabeled Cu L 2,3 -edge XAS/EELS spectrum and predicting the average oxidation state.The L 2,3 -edge was selected as the focus due to the prohibitively high energy of the transition metal K-edge for electron detectors.We utilized the simulated L-edge XAS spectra of transition metals stored in the Materials Project [39,40] as a seed to construct our training set.Despite the differing physical origins of XAS vs EELS, with XAS caused by excitation from a photon and EELS by an electron, under the long wave-length limit and dipole approximation, both spectroscopic methods involve evaluating the same transition matrix element.Therefore, a model trained on XAS data is able to effectively predict EELS data [41,42] for features where the quadrupole contribution is not significant.

8Cu was selected as the focus of this work due to the myriad applications of Cu nanomaterials.Specifically, Cu nanoparticles (CuNPs) are used in antimicrobial agents [43], catalysts [44] and renewable energy devices, particularly the electrochemical reduction of CO 2 [45].Examining the oxidation state of Cu nanomaterials is critical to their function, as CuNP preparation procedures can lead to unintended surface oxidation that disrupts many of their applications [43].Additionally, the major trends in Cu L-edge spectra can be captured accurately in Cu metal, Cu 2 O and CuO using the multiple scattering1 method implemented in the FEFF9 code [40,46].Figure S1a-c shows good agreement in the L 2 -L 3 spacing and well preserved intensity ratios between the L 2 and L 3 peaks.Fine detail such as the splitting of the L 3 peak in Figure S1a is demonstrated as well.The limitations of this method include the treatment of the partially filled 3d bands in Cu(II), where the many-body effects, such as multiplet effects, require higher levels of theory beyond the mean-field level [23,46].This can produce some spurious artifacts in the simulations, such as the L 3 shoulder in the CuO simulation (Figure S1c) which is not present in the experimental sample.Although the quadrupole contribution can play an important role in pre-edge features, distinct spectral features in the main edge regions are found to be sensitive to the oxidation state from feature importance analysis.Therefore, neglecting the quadrupole contribution will not have a significant impact in this analysis.The overall success of FEFF9 in producing Cu L-edge spectra allows Cu materials to serve as a model system for this type of automated analysis procedure.In this work we present a framework for predicting the Cu oxidation state that can be readily extended to other transition metals by acquiring a volume of corresponding simulated XAS data.

Performance on Simulated Spectra

9Our RF model shows a high level of accuracy on a test set of simulated data.Figure 2a shows the R 2 plot of the predictions of this test set, which contains roughly 2400 spectra.The R 2 for this model is 0.85, and shows a visible high degree of correlation across all the well represented oxidation states.The largest errors come from integer valence misprediction, most commonly when a Cu(0) or Cu(I) spectrum is predicted as mixed valence.However, as shown in Figure 2a, these mispredictions can often be differentiated from the accurate predictions by using the prediction standard deviation (described in the methods section).The feature importance plot from Figure 2c insights into the origin of these errors.The model takes a small amount of information from the pre-edge and then bases its prediction mostly on the location and shape of the L 3 peak.As Cu(0) and Cu(I) have L 3 peaks at almost exactly the same energy, these are harder to differentiate than Cu(II), which is red shifted by roughly 3 eV.Despite this difficulty, Cu(0) and Cu(I) are accurately identified far more often than they are mispredicted, as shown in Figure 2a.As can be seen from Figure 2b, a full integer miss, i.e. a Cu(0) spectrum incorrectly called a Cu(I) spectrum, essentially never occurs.What is even more encouraging in Figure 2a and 2b is the simulated mixture samples are frequently predicted with a high degree of accuracy, showing this model has significant potential in predicting mixed valence samples.

Model Uncertainty Metric

10In this work we have developed a method for quantifying the uncertainty in our RF model's prediction.This is done by examining the predictions of each of the 500 decision trees which comprise the random forest as well as the averaged value used as the final prediction.This uncertainty analysis is visualized by generating a prediction histogram, as shown in Figure 1 (IV) and Figure 3d-3f.Beyond the qualitative spread of predictions shown in the prediction histograms, the uncertainty can be understood quantitatively by calculating the standard deviation of these predictions.This is indicated by the horizontal green line in the prediction histogram plots shown in Figures 1 and 3, and is used here as the RF model's internal uncertainty measurement.To leverage this quantitative uncertainty, the standard deviation can be used to filter out predictions that are highly uncertain, and therefore presumably less accurate.Figure S5 illustrates this concept, where a standard deviation threshold was imposed, and all predictions with a standard deviation higher than this value were discarded due to their high uncertainty.The standard deviation can be used as a powerful tool in determining significantly inaccurate predictions on simulated data, as can be seen when the threshold is set at 0.35 (red rectangle in Figure S5a and S5b).When this threshold is used, 15% of the predictions of our test set are higher than the threshold and discarded (Figure S5a).However, imposing this threshold causes the RMSE of the remaining 85% of our test set to decrease 8% from the full test set value of 0.24 to 0.22 (Figure S5b).Therefore, the 15% of the test set discarded by this method is comprised of predictions less accurate than average, showcasing the utility of this uncertainty metric in informing the accuracy of the model's predictions for unknown samples.

Validation Using Experimental Spectra

11To test the RF model's validity when applied to experiments, we used the model to predict a set of metallic Cu and Cu oxide standards.The simulated spectra corresponding to these standards were left out of both the training and test sets previously discussed.These standards were smoothed using a Savitzy-Golay filter with a window size of 1.5 eV and a polynomial order of 3. From Figure S9 it can be seen that the level of smoothing does not impact prediction accuracy.The smoothing window of 1.5 eV was selected as the default method due to qualitative observations that it removed the vast majority of the noise but also preserved the overall shape of the spectrum (Figure S6).From Figure 3e and 3f it can be seen that the model has a high degree of accuracy when predicting Cu(I) and Cu(II), rendering essentially perfect predictions for each of these standards, regardless of whether the mean or the median of the decision tree ensemble is used as the prediction.However, Figure 3d shows the Cu(0) standard appears to be slightly over estimated, with the mean prediction rendering a larger overestimate than the median, as the two predict 0.3 and 0.05, respectively.There are likely two factors responsible for the overprediction of Cu valence for metallic absorbers.First, as has been discussed above, random forest models average predictions across individual decision trees, in this case 500.Therefore, it will always be more challenging for this model to predict Cu(0) as exactly zero, as all Cu atoms in our training data have non-negative valence.Consequently, any spread in the predictions will result in an overestimate.It is also worth noting that Figure 3d shows that the mode of our prediction histogram contains Cu(0) by a factor of four over the next highest bar, and that the median is much closer to a prediction of Cu(0).A second factor may also partially explain this overestimate, which is that our Cu(0) likely experienced some surface oxidation.Therefore, it may be assumed that this material no longer had a true oxidation state of zero at the time of measurement.This is reflected in the spectrum, which can be seen to have visibly taken on some additional Cu(I) character relative to simulated Cu(0) and Cu(0) observed in XAS studies taken from the literature (Figure S7, [21]).Specifically, our Cu(0) spectrum shows a drop in intensity of the two higher energy peaks in the L 3 edge and an increase in intensity in the lowest energy peak, which are characteristic of surface oxidation leading to more visible Cu(I) character.This, combined with the logistics surrounding the attainment of our Cu(0) sample, the sample was not shipped in vacuum sealed vial, and the fact that we were unable to reduce the sample in the microscope, supports the supposition that our Cu(0) EELS sample has undergone some surface oxidation.Therefore, we believe that this prediction of a mixed valence material closer to Cu(0) than Cu(I) matches our experimental realities and a detailed examination of the experimental spectrum.

12However, it is also important to note that an XAS spectrum of Cu(0) extracted from the literature (Figure 4d) is also overestimated by our model.This is unlikely to be a result of surface oxidation, both from an instrumental perspective and a qualitative examination of the spectrum, which shows a much more characteristic Cu(0) sample than our experimental EELS sample due to the relatively equal heights of the three L 3 edge peaks and the L 3 being lower in intensity than the L 2 edge (Figure S1, S7).We attribute the overestimation of the literature Cu(0) mainly to the fact that our model does not allow for non-positive predictions, which causes any uncertainty in the prediction of Cu(0) to result in an overestimate, as discussed above.

13In addition to the experimental spectra predicted here and in the following section, 8 other spectra extracted from the literature were predicted using this model (Figure S11, S12) [47][48][49].7 of these 8 spectra were materials with a Cu(I) oxidation state and all are predicted to within 0.1 of Cu(I) when the edge alignment is correct, and most retain their accuracy when the edge is misaligned by 0.5 eV in either direction (Figure S12).The one Cu(II) material, CuS, is predicted as roughly 1.5, however, our model's prediction is likely inaccurate due to this spectrum's high intensity post the L 3 region (Figure S16).As the Cu(II) L 3 edge is roughly 2eV lower in energy than Cu(I) and Cu(0), this increased intensity is likely mimicking a mixed valent spectrum, with this extra intensity appearing to come from absorption from a Cu(I) material.XAS is impacted by multiple photon scattering in very thick samples, which produces artificially high intensity in the tail of the L 2,3 edge spectrum.Therefore, we believe that this was simply a spectrum of a very thick sample, leading to multiple scattering induced changes to the spectrum that the model is unable to account for.

Energy Axis Misalignment

14Given that we have performed a manual edge alignment correction to our training data, we also examine the impact of energy axis misalignment on our predictions of experimental spectra.To explore this, we created a set of experimental spectra where the onset energy was shifted by controlled amounts and tracked how this shift impacted the oxidation state prediction (Figure 4).From Figure 4a we see that the energy misalignment has the greatest impact on the Cu(0) sample, and an offset of -0.4 eV or greatercauses an inflection point where the prediction jumps from 0.3 to nearly 0.5.Misalignment in the positive direction has a far less dramatic impact, and an energy shift of +0.5 eV produces essentially no change in the prediction.The Cu(I) sample, shown in Figure 4b, is more stable, with a shift of nearly 1 eV in either direction resulting in a change of less than 0.2 in the oxidation state prediction.In Figure 4c, we see that Cu(II)'s prediction is virtually independent of shift plus/minus 1 eV, which is likely explained by the greater than 2 eV gap between the onset energy of Cu(II) vs Cu(I) and Cu(0).To further examine the utility of our model when applied to experimental spectra, and to further study the impact of absolute energy shift, an additional experimental validation was done using an extracted set of XAS spectra of Cu oxides [21].This set of spectra has been measured to be shifted from the experimental spectra used to validate this model by -1.0 eV for the Cu metal spectrum and -1.2 eV for the Cu 2 O and CuO spectra (Figure S1), and provides a test case for how the model will respond to spectra with their energy axes significantly misaligned.From Figure 4d-f, we can see that our ML model produces excellent results for the XAS spectra when they are correctly aligned to our training data (red line in Figure 4d-f) and the results are robust even when the raw spectra are predicted, which are severely misaligned (black line in Figure 4d-f).When such a misalignment has occurred, the Cu(I) and Cu(II) spectra are predicted with near perfect accuracy, while the Cu(0) spectrum appears to be slightly over estimated, returning a prediction of around 0.5 when the correct alignment prediction is 0.28.It is worth reflecting this prediction is still an overestimate, although closer to zero than our experimental EELS spectrum shown in Figure 3d, reflecting this model's propensity to overestimate Cu(0).With these observations, it is clear that the ML model trained on properly aligned spectra can achieve highly accurate results on spectra with significant energy misalignment.Additionally, a potential avenue to determine the true alignment location is to vary the energy axis and seek out regions of consistent stability and low prediction standard deviation, as these regions are often associated with more accurate predictions for our experimental data.

Prediction of Experimental Mixed Valence Samples

15Post successful proof of concept for our model on standard experimental samples, we turn our attention to a more valuable, but also more challenging, experimental case, the prediction of samples of mixtures of different oxidation states.As shown in Figure 2a, our model has already demonstrated a high degree of accuracy on simulated mixed valence samples.Additionally, we show how smooth variance in simulated mixed valence materials excluded from the training data is captured by our model by showing simulated mixtures of Cu(0), Cu(I) and Cu(II) in Figure S8.The important test for the utility of this model in experimental spectra is how well this process works on experimental mixtures of oxidation states.Due to the difficulty in engineering a system with smoothly varying mixed valence states, and inherent uncertainties in quantifying such a system, we have generated mixed valence experimental spectra through linear combinations of our standard samples.The labeled value for these experimental mixtures is determined by multiplying their formal oxidation state by their contribution to the final mixture spectrum, as was done with the labeling for the simulated mixtures.For example, a mixture of 40% Cu(0) standard and 60% Cu 2 O standard would be calculated as follows: 0.00 * 0.4 + 1.00 * 0.6 + 2.00 * 0.0 = 0.6

16The results are shown in Figure 5. From Figure 5a-b, we see both plots contain regions of high accuracy, particularly for mixtures of Cu(I) and Cu(II) (Figure 5b).These mixtures are accurately predicted to within less than 0.1 in close to half of the mixture samples.However, we can see that the absolute accuracy has sections of low accuracy, particularly at inflection points where the prediction is changing quickly.This is particularly true for mixtures of Cu(0) and Cu(I) (Figure 5a), where the inflection region drives the prediction into a region of significant overestimation which is not recovered until the mixture becomes entirely Cu(I).However, the overall trend of the prediction is correct, as in both Figure 5a and b the higher valence sample is identified as such until a pure sample is predicted, regardless of any absolute inaccuracies in the prediction.

17Both mixed valence cases tend overestimate the oxidation state when the higher oxidation state sample comprises greater than 50% of the mixture.We believe this to be a feature of the higher maximum intensity and sharper peaks of higher oxidation state spectra.This can be seen in Figure 3a-c, where the edge intensity relative to the tail of each spectrum is shown.This is also noticeable in the cumulative spectrum, which is the actual input into the model, (inset in Figure 3a-c) where the lower intensity in the Cu(0) peak results in an almost linear cumulative spectrum, while the higher intensity of Cu(I) and Cu(II) are very noticeable as a sharply increasing region in the L 3 edge region of the cumulative spectrum.The higher intensity of the higher oxidation state may make the fine features of Cu(0) difficult to detect at low mixture fractions, as Cu 2 O and Cu(0) have their onset edges and L 3 peaks at essentially the same energy.Additionally, The slight red shift in Cu(II) spectra yields an immediately noticeable feature for model identification, and a sample which is 75% Cu(II) and 25% Cu(I) may simply be predicted as a Cu(II) with a shoulder or other unusual transition, which is relatively common in the simulated data.

18We have also predicted random experimental mixtures of Cu(0), Cu 2 O, and CuO.This was done using mixtures of the literature XAS spectra and our experimental EELS data.The results are shown in Figure S14a and c, respectively.They contain a characteristic overestimation as seen in the smoothly varying mixed valent binary mixtures, which inspired the creation of an empirical correction to random mixed valent spectra.The literature XAS predictions were used to train a linear regression model to predict the true oxidation state based on the prediction of the unknown spectrum.This was done using the mean, median and standard deviation of the decision trees as input.The model was trained and validated using the random mixtures of the literature XAS data and tested on the predictions of the random mixtures of EELS data.Figure S14a-b shows the predictions on the training data, the literature XAS sample, and how the empirical correction improves the predictions.Upon generation of this empirical model, it was used to correct the predictions of mixtures of Cu(0), Cu 2 O, and CuO experimental EELS spectra.The results of applying this correction are shown in Figure S14c-d.The generation of this empirical model shows that, despite the challenges of predicting a pure Cu(II) in the empirical model's predictions, the overall trend of the mixed valent overestimation can be captured and corrected.

Comparison of Prediction Methods

19As Figure 3d clearly shows that the median/mode of the decision trees yields a prediction much closer to Cu(0) for our experimental EELS Cu(0) sample, and Figure 5 shows a characteristic overestimation in both types of experimental mixtures, it is worth exploring whether using the median or the mode as a prediction, rather than the mean, is more accurate overall.This idea is explored in detail in Figure S13, which shows the full prediction histogram for various mixtures of Cu(0) and Cu 2 O (Figure S13a-f) and compares the median, mean and mode predictions directly (Figure S13gi).From Figure S13 we see that, although the median is more accurate for pure Cu(0), it quickly begins to overestimate the oxidation state by a margin significantly greater than the prediction using the mean of the decision trees.The mode prediction is even more extreme, jumping from predicting Cu(0) for pure Cu(0) and 80/20 mixtures of Cu(0) and Cu 2 O, to a prediction of Cu(I) for 60/40 mixtures of Cu(0) and Cu 2 O. Therefore, for predictions of mixtures of oxidation states, the mean prediction is more likely to be accurate, and mean/mode statistics can be helpful in instances where a pure oxidation state is assumed, particularly if the material is expected to be metallic.Due to this utility, predictions using this model return the full set of predictions as well as the mode, median and the mean of the decision trees.

Impact of Noise on Simulated Data

20To test the impact of noise on the simulated data, random Poisson noise was added to each simulated spectrum in the test set to produce a test set augmented by noise.To ensure that this process echoed our approach on experimental spectra as much as possible, the simulated spectra, which are on a 0.1 eV resolution, were re-sampled using scipy's 1d interpolation function with a higher resolution of 0.03 eV, matching that of our experimental samples.Noise was then added to the interpolated spectra, and these spectra were then smoothed in the same method as the experimental spectra and integrated to produce a cumulative spectrum (Figure S6).These spectra were then predicted by the model to test its accuracy on noisy data.As shown in Figure 6a, the simulated data are relatively sensitive to noise augmentation, and the addition of a small amount of Poisson noise resulted in an increase in RMSE from 0.24 to 0.3 as compared to results from the noiseless spectra.Further increase in noise led to an even larger RMSE, however the decline in accuracy becomes less sharp than the initial slope.A similar trend is seen in Figure 6b for R 2 , where a drop in R 2 is observed after adding a small amount of noise, however this decline is less sharp than the increase in RMSE, and adding additional noise has a more pronounced decline on R 2 than subsequent noise does on RMSE.Despite this observation, the noise level of our experimental spectra, which are noticeably larger than the simulated low noise case, do not appear to suffer as much as these simulated noisy spectra (Figure S6).An examination of the quantitative noise level of the experimental spectra can be found in Figure S15, which shows that the noise STD for the experimental EELS spectra is between 0.03 and 0.05.Additionally, the selection of the random seed for the addition of noise appears to have a significant impact on the overall accuracy of the noisy test set.This is shown with the error bars in Figure 6a and 6b, which represent the standard deviation across 100 different random noise seed states.The presented RMSEs and R 2 s are the average values across these 100 random states.A detailed examination of the noise profiles for these higher error random states shows that in these spectra the region around the baseline experiences noise spikes that mimic features around the baseline region, similar to how an inaccurate power law subtraction of an EELS spectrum baseline appears.This observation further enforces that the accuracy of this model relies heavily on the accurate identification and subtraction of the baseline.

Conclusion

21In this work, we have built a random forest model trained on simulated L-edge XAS spectra which is capable of predicting the oxidation state of copper based on its L-edge XAS/EELS spectrum.We have also developed a database of Cu XAS spectra containing 3500 unique materials that have been accurately aligned to experimental spectra, and augmented this database with 6000 simulated mixture spectra.Our random forest model attains an R 2 of 0.85 on simulated data with an RMSE of 0.24 and has been shown to accurately predict experimental spectra taken from our home institution and from the literature.Additionally, this model has proven successful predicting mixed valence samples, showing its applicability to track Cu oxidation state in in-situ experiments where oxidation state is changing fluidly as a reaction occurs.Beyond this model's utility to Cu materials, we have also developed a broader methodology which can be extended to the analysis of other materials by acquiring a spectral database of accurate simulated L-edge spectra for the corresponding material.

Training Set Generation

22In this work, simulated FEFF9 XAS spectra of Cu materials were extracted from the Materials Project.This initial extraction produced a dataset of site averaged spectra for 1533 materials, which contains the 59 materials shown in Figure 1I labeled as neither predicted stable nor synthesized [40].To increase the volume of our training data, an additional 2000 structures were selected by searching the Materials Project for all Cu containing materials that had either been previously synthesized or were predicted to be stable by theory [39].This choice screens a broad material space that is likely accessible to experiments.We computed 2000 site averaged spectra using the Lightshow workflow [50] and FEFF9 [46].The combination of this augmentation step and the initial extraction of L-edge spectra already generated by the Materials Project provided 1199 materials that both have been experimentally synthesized and are predicted to be stable (Figure 1I).For each structure, unique Cu sites are determined by the space group symmetry.Then site specific spectra were calculated using FEFF9.The L 2 and L 3 spectra for each site were combined into the L 2 , 3 spectrum by summing the L 2 and L 3 spectra, after first interpolating onto the same energy grid (Figure S2).The site averaged spectrum is calculated from the weighted sum of site-specific spectra based on the multiplicity of the unique sites in the unit cell.The oxidation state of the site averaged spectra spectra were determined using the Materials Project's "average oxidation states" function [39].Despite this averaging procedure, greater than 93% of the site averaged spectra retained integer valence.When FEFF9 failed to converge for some, but not all, of the sites in a material, converged site spectra were averaged leaving out the failed spectra.

23To prepare our training set of 3500 site averaged spectra, several additional steps were performed.This workflow is summarized in Figure 1.First, spectra were interpolated to ensure they were all on a 0.1 eV energy resolution.Second, the non uniformity in the energy range of the L 3 edge, specifically at the starting point, was addressed by fitting a 6th order polynomial to connect the lowest energy point to [925, 0] (i.e., vanishing intensity at 925 eV) for every spectrum (see Figure S3).The spectra were then aligned to ensure their onset edges were in the same general energy range as those seen in experimental EELS Cu materials, as it was observed that FEFF9 was producing a systematic misalignment in the absolute energy of the L 2,3 edge .

24To accomplish this alignment, two systematic errors were corrected.First, a high degree of onset energy variability was observed across zero valence materials, which would be expected to all have similar onset energies.Second, the absolute energy of the simulated spectra were several eV off from experimental standards.Both of these issues were fixed simultaneously by our automated alignment procedure.Below is a brief summary of our edge alignment procedure following the ∆SCF method [51,52], as shown in equation ( 2):

25where E raw and E align are the excitation energies before and after alignment.In order to correct the inaccuracy in the calculated excitation energy, we scale the raw spectrum by the difference between the Fermi energy (ϵ F ermi ) and Cu 2p core level (ϵ Core ) and by the total energy difference between the core-hole excited state (ϵ XCH ) and the ground state (ϵ GS ).In the core-hole excited state, the core electron is placed at the bottom of the conduction band, known as the excited core-hole (XCH) method.After this alignment, there is a single empirical constant (∆) calibrated on a reference system to account for the residual discrepancy between theory and experiment.In our study, ϵ F ermi is taken from the FEFF9 output corresponding to k=0, where k is the photoelectron wave number.ϵ Core is set to -916.8226 eV, which is determined by the VASP estimation of the energy of a 2p core hole in Cu [52,53].(ϵ XCH -ϵ GS ) was computed using the VASP code base, and the values are -650.888eV, -650.748eV and -651.945eV for Cu, Cu 2 O and CuO, respectively [53].In principle, one should perform VASP calculations for all the systems in the database.However, this will lead to a very high computational cost, which is impractical for the scope of this study.Therefore, we treated (ϵ XCH -ϵ GS ) as constant for each oxidation state, using the Cu, Cu 2 O and CuO values listed above for Cu(0), Cu(I) and Cu(II) spectra respectively.This resulted in a simplification of equation (2), where (ϵ XCH -ϵ GS ) + ∆ is treated as a constant, δ ox , with different values for each oxidation state.These are: 1849.06 eV, 1849.33eV and 1846.87 eV for Cu with oxidation state of 0, +1 and +2, respectively, which aligns simulated Cu, Cu 2 O and CuO spectra to their corresponding EELS experimental spectrum.For the small subset of materials that were classified as mixed valence, they were aligned based on whichever integer oxidation state they were closest to.

26It is important to note that this alignment procedure is not aligning the edge to the exact location of the Cu/ Cu 2 O/CuO edges for all Cu 0, +1 and +2 spectra (i.e.forcing every Cu(II) spectrum to start at 930.2 eV, where the CuO edge is located).This alignment procedure computes a correction based on FEFF9's Fermi energy prediction and then uses the energy gap between the simulated spectrum of either Cu metal, Cu 2 O and CuO, post Fermi correction, and the corresponding experimental spectrum to scale all spectra with that oxidation state.For example, not every Cu(II) spectrum is at the same edge energy, and many of them are quite different based on their initial location post Fermi energy correction.The relative energy alignment from FEFF9 within an oxidation state is often preserved, particularly for Cu(I) and Cu(II) materials, and this scaling using the experimental spectra is done to bring the energy axis to experimental relevance.Without this correction, the energy axis for the FEFF9 spectra is misaligned by multiple eV and any experimental prediction is impossible.An example of this alignment procedure is shown in Figure S10.

27Our spectral dataset was then augmented by generating simulated mixed valence samples (see step III in Figure 1, Figure S4).To accomplish this, 300 random sets of spectra were drawn from the integer dataset, each draw taking a random Cu(0), Cu(I) and Cu(II) site averaged spectrum.Each of these 300 sets of 3 integer spectra were then linearly combined to mimic mixed valence structures.For each set of three spectra, 20 random fractions of each material were combined to produce a simulated mixed valence spectrum.To ensure an even spread of mixed valences, 100 sets were combinations of Cu(0) and Cu(I), 100 were combinations of Cu(I) and Cu(II), and 100 were combinations of Cu(0), Cu(I) and Cu(II).This mixture produced a final dataset of roughly 9500 spectra with data well distributed from Cu(0) to Cu(II) (step III in Figure 1, Figure S4).Our training and test sets were generated by separating classes of mixtures, rather than a random 75/25 split across the full 9500 spectra dataset.To accomplish this, we tracked the compositions of each random mixture, and ensured each composition was fully placed in either the training or test set.For example, an arbitrary mixture of Cu(0), Cu(I) and Cu(II) would have 20 random proportions of each material in our full dataset, and our train/test split ensured all 20 of these were either in training or test.This ensures the model is not biased by seeing a 0.3 0.3 0.4 mixture of the above materials in training and then tested on a mixture of 0.2 0.3 0.5 of the above compounds, which results in a very similar spectrum.

28To achieve the best ML model performance, we have tested different spectral representations, including the spectrum itself, its first and second derivative, and the cumulative integral of the spectrum.We found that the best model performance was achieved with the cumulative integral with intensity normalized to 1.In addition, using the cumulative integral, referred to as a cumulative spectrum in this work, as input feature can ensure consistency in the absolute scale of the EELS spectrum.This representation can simplify intensity scaling, as experimental post processing decisions and noise can create a high degree of variability in spectral intensity.The cumulative spectrum approach is insensitive to the absolute scale of the spectrum, although it does require an accurate identification and subtraction of the baseline for experimental spectra.

Random Forest Modeling

29Random forest (RF) models for this work were trained using Scikit-learn's Random-ForestRegressor model [54].The number of trees was fixed at 500, with all features available and max depth unfixed.The dataset was split into train and test components using a 75/25 random train test split function from Scikit-learn.The structure of this model allows for the input of a raw spectrum of arbitrary min and max energy and energy scale.The model then takes the input spectrum and interpolates it to a 0.1 eV resolution from 925 to 970 eV to ensure the consistency of the energy grid used in the training data.Spectral smoothing is then applied using a Savitzy-Golay filter from scipy [55].The smoothing step is done before the interpolation provided that the inputted spectrum is on an evenly spaced energy scale.The cumulative operation on the spectrum is then performed and this spectrum is the input of the model.The trained RF model is an ensemble of 500 individually trained decision trees, and returns the predictions of each decision tree.A simple average of inferred valence values from each tree is taken as the final prediction, although median and mode predictions can be returned as well.The mode prediction is determined by finding the highest count on a histogram with bin widths of 0.2.The mode is determined by finding the center of the highest bin, meaning integer valence predictions will be returned as 0.1 higher than the integer valence (ie a prediction of Cu(0) will have a mode of 0.1 assigned to it, as the bin will range from 0.0 to 0.2).The standard deviation of these 500 predictions can approximate the model's internal confidence in its prediction, and is visualized in the prediction histogram in Figures 1, 3 and S6, the last of which illustrates the entirety of the processing steps performed on an input spectrum.

Experimental EELS

30To validate the utility of this model on experimental data, experimental EELS spectra of standard reference samples were measured, including Cu metal, Cu 2 O and CuO.Cu metal was purchased from Sigma-Aldrich with 99.999% purity.Cu 2 O and CuO were purchased from Sigma-Aldrich with 99.99% purity.The Cu 2 O sample was measured using a vacuum holder to prevent oxidation.However, the Cu metal sample was not delivered in a vacuum sealed container, and under the assumption that surface oxidation had already occurred, a vacuum holder was not used for this sample.Using the TEAM I microscope, a double-corrected Thermo Fisher Titan microscope, we acquired monochromated reference data for these samples at roughly 0.2 meV resolution.Data were collected at 300kV with a semi-convergence angle of 17 mrad and a collection angle of 82 mrad.All data was collected using a Gatan Continuum spectrometer equipped with a K3-IS detector operated in electron counting mode.Spectra were baseline subtracted using the GMS Digital Micrograph software package, and spectra were taken using dual EELS to dynamically remove shifts in the reference elastic energy and deconvolved with the simultaneously measured zero-loss region to mitigate artifacts from electrons experiencing multiple scattering events.The deconvolution of multiple scattering is essential to ensure the experimental EELS spectra are comparable to XAS.Fig. S6 An outline of every processing step for a raw experimental spectrum predicted by this model.After the raw spectrum is taken (a) the spectrum is smoothed with a Savitzky-Golay filter (b).The spectrum is then interpolated onto a 0.1 eV scale (c) and cropped to run from an energy axis of 925-970 eV (d).The spectrum is transformed into a cumulative spectrum (e) and inputted into the random forest model (f).This results in the outputted prediction (g), which includes the prediction determined by the mean (red vertical line) and median (orange dashed line) of the decision trees in the random forest, full predictions across all 500 decision trees (grey bars) and standard deviation (green horizontal line).Fig. S10 An illustration of the onset edge alignment procedure.The top equation shows the overall alignment equation, where E align is the aligned spectrum and E abs is the unaligned spectrum.ϵ F ermi is FEFF's estimation of the Fermi energy which is different for each spectrum.ϵ Core is the estimation of the core hole energy of a 2p core hole in Cu, which is constant for all our spectra.δox is the experimental reference parameter, which is a combination of three parameters whose sum is approximated to be constant for each oxidation state (see methods section).δox ensures the simulated spectra are aligned to experimental samples.There is a different δox for each of the three oxidation states of Cu: 0, +1 and +2.

Fig. 2

31Fig. 2 The performance of the random forest model on the test set of simulated data.(a) R 2 plot, where each spot's size is proportional to the number of spectra at that point and its color corresponds to the prediction's standard deviation.(b) histogram of the absolute errors, with the vertical green line showing the location of the root mean square error (RMSE) and the vertical red line showing the location of the mean absolute error (MAE).(c)feature importance of the random forest model plotted on the same energy axis as the spectra.

Fig. 3

32Fig.3The performance of the random forest model on experimental Cu oxide EELS standards collected in this work.The top row (a, b, c) shows the raw spectrum with the cumulative spectrum as an insert.The bottom row (d, e, f) shows the prediction histograms for each spectrum, where the grey bars correspond to the number of decision trees predicting values over that range, The formal oxidation state is shown by the vertical blue line in each plot, while the predictions generated by the mean and median of the decision tree predictions are shown in red and orange, respectively.The standard deviation of the decision tree's predictions is shown as a green horizontal line.

Fig. 4

33Fig.4The impacts of energy misalignment on the prediction for EELS spectra taken in this work (a-c) and XAS spectra extracted from the literature (d-f)[21].The spectra are shifted horizontally on the energy axis by the amount indicated in the x axis but are not changed in any other way.The scatter plot color corresponds to the prediction's standard deviation.The horizontal orange dashed lines show the location of the formal oxidation state of each material.The dashed black line indicates the location of the raw spectrum without any energy axis shifting.The red dashed line indicates the amount of energy axis shifting required to bring the experimetnal spectrum's onset energy to the same value as its corresponding simulated spectrum in our dataset.

Fig. 5

34Fig. 5 Performance of the random forest model on experimental mixed valence spectra.(a) mixtures of Cu(0) and Cu(I), while (b) shows mixtures of Cu(I) and Cu(II).The scatter plot color corresponds to the prediction's standard deviation.The dashed line indicates the location of a perfect prediction, while the vertical lines indicate the standard deviation of each prediction.The vertical lines show one standard deviation in the negative and positive direction.

Fig. 6

35Fig. 6 Random forest model performance on simulated data augmented by Poisson noise.The standard deviation of the Poisson distribution used to generate the noise is shown in the x axis of each plot.The error bars denote the standard deviation of the RMSE/R 2 across 100 random states for that noise standard deviation value.

Fig

36Fig. S2 Illustration of how L 2,3 spectra are created from the individual L 2 and L 3 spectra.Post interpolation to place the L 2 and L 3 spectra on the same 0.1 eV energy axis, the two spectra are simply summed together to produce the L 2,3 spectrum.

Fig. S4

37Fig.S4Illustration of data augmentation with simulated mixed valence samples.100 random spectra are sampled from the full dataset (a,b), and then 20 combinations of Cu(0) and Cu(I) are computed for randomly generated mixture values (c).This process is then repeated two additional times for mixtures of Cu(I) and Cu(II) (d,e), and mixtures of Cu(0), Cu(I) and Cu(II) (f,g).This produces a set of 6000 mixture spectra which fully fills out the spaces between the integer spectra values (h).

38Fig.S7Comparison of Cu(0) (a), Cu(I) (b) and Cu(II) (c) from[1] and our home institution.The sharp first peak in (a) and its higher intensity relative to the higher energy peaks clearly indicates the presence of Cu(I), as shown in (b).

39Fig.S11Predictions on eight additional XAS spectra extracted from the literature.The predictions shown here are done with the manual edge alignment shown in FigureS12.All spectra besides CuS correspond to formal oxidation states of Cu(I) while CuS is Cu(II).The formal oxidation state is shown by the vertical blue line in each plot, while the prediction generated by the mean and median of the decision tree predictions are shown in red and orange, respectively.The standard deviation of the decision tree's predictions is shown as a green horizontal line.

40Fig.S12Predictions on eight additional XAS spectra extracted from the literature.Predictions are shown every 0.2 eV of spectrum shift.Each plot shows the impact of shifting the spectrum's energy axis on the predicted oxidation state.The solid black line indicates when the raw extracted spectrum is predicted without any additional alignment.The dashed red line indicates when the spectrum has been manually aligned so its L 3 onset edge matches its corresponding simulated spectrum in our dataset.All spectra besides CuS correspond to formal oxidation states of Cu(I) while CuS is Cu(II).The formal oxidation state is shown by the horizontal orange line in each plot, while the prediction generated by the mean of the decision tree predictions are shown as scatter spots in each plot, with the prediction standard deviation determined by the color of the spot.

Fig

41Fig. S14 Our random forest model's predictions of random mixtures of Cu(0), Cu 2 O and CuO.(ab) a linear regression model that takes in the mean, median and standard deviation of the RF model's decision trees and attempts to correct the systematic overestimation.This model is trained on the results in (a) and its training data accuracy is shown in (b).We then demonstrate the utility of this correction by predicting mixtures of experimental EELS spectra containing random proportions of Cu(0), Cu 2 O and CuO (c) and applying this linear regression model to them (d).

42Fig. S15 (a-c) Visualization of the noise level of the Cu EELS experimental spectra.(d-e) Where this noise level falls in Figure 6.The blue line corresponds to 0.03 represented in (a-b) while the red line corresponds to 0.05 represented in (c).

참고문헌 55건

  1. Artificial intelligence and pattern recognition techniques in microscope image processing and analysis Advances in imaging and electron physics · Academic Press · 2000 10.1016/s1076-5670(00)80020-8
  2. Ratios of ferrous to ferric iron from nanometre-sized areas in minerals Nature · Nature Portfolio · 1998 10.1038/25334
  3. Data Processing for Atomic Resolution Electron Energy Loss Spectroscopy Microscopy and Microanalysis · Oxford University Press · 2012 101017s1431927612000244
  4. Sub-ångstrom resolution using aberration corrected electron optics Nature · Nature Portfolio · 2002 10.1038/nature00972
  5. Use of L-edge X-ray absorption spectroscopy to characterize multiple valence states of 3d transition metals; a new probe for mineralogical and geochemical research Physics and Chemistry of Minerals · Springer Science+Business Media · 1993 10.1007/bf00207204
  6. High resolution EELS of Cu–V oxides: Application to batteries materials Micron · Elsevier BV · 2005 10.1016/j.micron.2005.11.007
  7. Mapping chemical and bonding information using multivariate analysis of electron energy-loss spectrum images Ultramicroscopy · Elsevier BV · 2006 10.1016/j.ultramic.2006.04.016
  8. Electron energy‐loss near‐edge structure – a tool for the investigation of electronic structure on the nanometre scale Journal of Microscopy · Wiley · 2001 10.1046/j.1365-2818.2001.00898.x
  9. Independent component analysis: A new possibility for analysing series of electron energy loss spectra Ultramicroscopy · Elsevier BV · 2004 10.1016/j.ultramic.2004.11.003
  10. Simultaneous STEM imaging and electron energy-loss spectroscopy with atomic-column sensitivity Nature · Nature Portfolio · 1993 10.1038/366727a0
  11. Commentary: The Materials Project: A materials genome approach to accelerating materials innovation APL Materials · American Institute of Physics · 2013 10.1063/1.4812323
  12. Efficiency of ab-initio total energy calculations for metals and semiconductors using a plane-wave basis set Computational Materials Science · Elsevier BV · 1996 10.1016/0927-0256(96)00008-0
  13. Practical aspects of electron energy-loss spectroscopy (EELS) calculations using FEFF8 Micron · Elsevier BV · 2006 10.1016/j.micron.2006.03.011
  14. Atomic-resolution chemical analysis using a scanning transmission electron microscope Nature · Nature Portfolio · 1993 10.1038/366143a0
  15. Investigation of the oxidation states of Cu additive in colored borosilicate glasses by electron energy loss spectroscopy Journal of Applied Physics · American Institute of Physics · 2014 10.1063/1.4903955
  16. Quantification of ferrous/ferric ratios in minerals: new evaluation schemes of Fe L 23 electron energy-loss near-edge spectra Physics and Chemistry of Minerals · Springer Science+Business Media · 2002 10.1007/s00269-001-0222-6
  17. Electronic structure of ZrCuSiAs and ZrCuSiP by X-ray photoelectron and absorption spectroscopy Journal of Solid State Chemistry · Elsevier BV · 2010 10.1016/j.jssc.2010.04.032
  18. Parameter-free calculations of X-ray spectra with FEFF9 Physical Chemistry Chemical Physics · Royal Society of Chemistry · 2010 10.1039/b926434e
  19. Mapping plasmons at the nanometer scale in an electron microscope Chemical Society Reviews · Royal Society of Chemistry · 2014 10.1039/c3cs60478k
  20. Investigation of thickness dependence on electronic structures of iron and nickel thin films by L-edge X-ray absorption spectroscopy Vacuum · Elsevier BV · 2013 10.1016/j.vacuum.2013.06.003
  21. Two-Dimensional Mapping of Chemical Information at Atomic Resolution Physical Review Letters · American Physical Society · 2007 10.1103/physrevlett.99.086102
  22. Electronic structure of lanthanum copper oxychalcogenides LaCuOCh (Ch=S, Se, Te) by X-ray photoelectron and absorption spectroscopy Journal of Solid State Chemistry · Elsevier BV · 2011 10.1016/j.jssc.2011.05.005
  23. The oxidation states of copper and iron in mineral sulfides, and the oxides formed on initial exposure of chalcopyrite and bornite to air Geochimica et Cosmochimica Acta · Elsevier BV · 2006 10.1016/j.gca.2006.02.007
  24. On the hydration and hydrolysis of carbon dioxide Chemical Physics Letters · Elsevier BV · 2011 10.1016/j.cplett.2011.08.063
  25. Application of Multivariate Statistical Analysis to STEM X-ray Spectral Images: Interfacial Analysis in Microelectronics Microscopy and Microanalysis · Oxford University Press · 2006 10.1017/s1431927606060636
  26. Multiplet effects in X-ray spectroscopy Coordination Chemistry Reviews · Elsevier BV · 2004 10.1016/j.ccr.2004.03.018
  27. Third row transition metals for the treatment of cancer Philosophical Transactions of the Royal Society A Mathematical Physical and Engineering Sciences · Royal Society · 2015 10.1098/rsta.2014.0185
  28. Multivariate statistical methods for the analysis of microscope image series: applications in materials science Journal of Microscopy · Wiley · 1998 10.1046/j.1365-2818.1998.3250876.x
  29. Determination of manganese valence states in (Mn3+, Mn4+) minerals by electron energy-loss spectroscopy American Mineralogist · Mineralogical Society of America · 2010 10.2138/am.2010.3468
  30. Applications of STEM-EELS to complex oxides Materials Science in Semiconductor Processing · Elsevier BV · 2016 10.1016/j.mssp.2016.06.005
  31. Supervised Machine-Learning-Based Determination of Three-Dimensional Structure of Metallic Nanoparticles The Journal of Physical Chemistry Letters · American Chemical Society · 2017 10.1021/acs.jpclett.7b02364
  32. Probing the oxidation state of transition metal complexes: a case study on how charge and spin densities determine Mn L-edge X-ray absorption energies Chemical Science · Royal Society of Chemistry · 2018 10.1039/c8sc00550h
  33. Classification of local chemical environments from x-ray absorption spectra using supervised machine learning Physical Review Materials · American Physical Society · 2019 10.1103/physrevmaterials.3.033604
  34. Towards calibration-invariant spectroscopy using deep learning Scientific Reports · Nature Portfolio · 2019 10.1038/s41598-019-38482-1
  35. Electronic structure in the transition metal block and its implications for light harvesting Science · American Association for the Advancement of Science · 2019 10.1126/science.aav9104
  36. Electro- and Solar-Driven Fuel Synthesis with First Row Transition Metal Complexes Chemical Reviews · American Chemical Society · 2019 10.1021/acs.chemrev.8b00392
  37. ChemInform Abstract: Cu and Cu‐Based Nanoparticles: Synthesis and Applications in Catalysis ChemInform · Wiley · 2016 10.1002/chin.201619194
  38. Automated generation and ensemble-learned matching of X-ray absorption spectra npj Computational Materials · Nature Portfolio · 2018 10.1038/s41524-018-0067-x
  39. Unoccupied electronic structure and core-hole effects in the x-ray-absorption spectra of<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:msub><mml:mrow><mml:mi mathvariant="normal">Cu</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math>O Physical review. B, Condensed matter · American Physical Society · 1992 10.1103/physrevb.45.3309
  40. SciPy 1.0: fundamental algorithms for scientific computing in Python Nature Methods · Nature Portfolio · 2020 10.1038/s41592-019-0686-2
  41. Engineering unsymmetrically coordinated Cu-S1N3 single atom sites with enhanced oxygen reduction activity Nature Communications · Nature Portfolio · 2020 10.1038/s41467-020-16848-8
  42. Random forest machine learning models for interpretable X-ray absorption near-edge structure spectrum-property relationships npj Computational Materials · Nature Portfolio · 2020 10.1038/s41524-020-00376-6
  43. Data Processing for Atomic Resolution Electron Energy Loss Spectroscopy Microscopy and Microanalysis · Oxford University Press · 2012 10.1017/s1431927612000244
  44. (S)TEM-EELS as an advanced characterization technique for lithium-ion batteries Materials Chemistry Frontiers · Royal Society of Chemistry · 2021 10.1039/d1qm00275a
  45. Database of ab initio L-edge X-ray absorption near edge structure Scientific Data · Nature Portfolio · 2021 10.1038/s41597-021-00936-5
  46. Review—Multifunctional Copper Nanoparticles: Synthesis and Applications ECS Journal of Solid State Science and Technology · Institute of Physics · 2021 10.1149/2162-8777/ac07f8
  47. 3. X-ray Absorption Near-Edge Structure (XANES) Spectroscopy De Gruyter eBooks · De Gruyter · 2014 10.1515/9781614517863.75
  48. Electron Energy-Loss Spectroscopy in the Electron Microscope Springer eBooks · Springer Nature · 2011 10.1007/978-1-4419-9583-4
  49. Promoting nickel oxidation state transitions in single-layer NiFeB hydroxide nanosheets for efficient oxygen evolution Nature Communications · Nature Portfolio · 2022 10.1038/s41467-022-33846-0
  50. Revealing local order via high energy EELS Materials Today Nano · Elsevier BV · 2022 10.1016/j.mtnano.2022.100298
  51. Deciphering phase evolution in complex metal oxide thin films via high-throughput materials synthesis and characterization Nanotechnology · IOP Publishing · 2022 10.1088/1361-6528/acad09
  52. Lightshow: a Python package for generating computational x-ray absorption spectroscopy input files The Journal of Open Source Software · Open Journals · 2023 10.21105/joss.05182
  53. Comparative of machine learning classification strategies for electron energy loss spectroscopy: Support vector machines and artificial neural networks Ultramicroscopy · Elsevier BV · 2023 10.1016/j.ultramic.2023.113828
  54. MnEdgeNet for accurate decomposition of mixed oxidation states for Mn XAS and EELS L2,3 edges without reference and calibration Scientific Reports · Nature Portfolio · 2023 10.1038/s41598-023-40616-5
  55. Multicode benchmark on simulated Ti K-edge x-ray absorption spectra of Ti-O compounds Physical Review Materials · American Physical Society · 2024 10.1103/physrevmaterials.8.013801