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

Machine learning for experimental design of ultrafast electron diffraction

간접 관련 화학·수지 · (21) 에폭시수지 (15) 디스플레이 패널재료(16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Mahmoud Shaaban — Department of Mechanical Engineering, Texas A & M University, College Station, USA
  2. S. El-Borgi — College of Science and Engineering, Hamad Bin Khalifa University, Doha, Qatar
  3. Aravind Krishnamoorthy — Department of Mechanical Engineering, Texas A & M University, College Station, USA. akrishnamoorthy@tamu.edu
DOI
10.1038/s41598-025-06779-z
저널
Scientific Reports
발행년도
2025
발행기관
Nature Portfolio
피인용수
3
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-025-06779-z
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W4411856263

평가 내용

관련도
간접 관련
사업분야
화학·수지 · (21) 에폭시수지
부 분야
(15) 디스플레이 패널재료, (16) CPI(투명 폴리이미드)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
Machine learning, Ultrafast electron diffraction, Convolutional Neural Networks, Phase transformation, Material dynamics
판단 근거
본 논문은 초고속 전자 회절(UED) 데이터를 실시간으로 분석하고 결정 구조의 상변화 및 결함을 탐지하기 위한 머신러닝 모델(CNN, C-VAE) 연구를 다룹니다. 이는 코오롱인더스트리의 직접적인 제품 연구는 아니나, 고분자 및 결정성 소재(에폭시, CPI 등)의 미세 구조 분석 및 물성 제어를 위한 분석 방법론으로서 활용 가치가 있습니다.
R&D 활용 포인트
신규 고분자 소재(에폭시, 폴리이미드 등) 합성 시, 머신러닝 기반의 회절 패턴 분석 기법을 도입하여 결정 구조 변화나 미세 결함을 실시간으로 모니터링하고 공정 최적화에 활용할 수 있습니다.
평가 입력
본문 44,674자

초록

Ultrafast electron diffraction (UED) experiments can extract insights into material behavior at ultrafast timescales but are limited by the manual analysis required to process several gigabytes of diffraction pattern data. The lack of real-time data prevents in situ tuning of experimental parameters toward desirable material dynamics or avoid sample damage. We demonstrate that machine learning methods based on Convolutional Neural Networks trained on synthetic and experimental diffraction patterns can perform real-time analysis of diffraction data to resolve dynamical processes in a representative material, [Formula: see text], and identify signs of material damage. By building on CNN's ability to learn compressed representations of diffraction patterns that map to distinct material dynamics, we construct Convolutional Variational Autoencoder models to track structural phase transformation in a model material system through the time trajectory of UED images in the low-dimensional latent space. Such models enable real-time steering of experimental parameters towards conditions that realize phase transformations or other desirable outcomes by mapping experimental conditions to distinct regions of the latent space. These examples show the ability of machine learning to design self-correcting diffraction experiments to optimize the use of large-scale user facilities.

본문 44,674자

본문 펼치기
## OPEN # Machine learning for experimental design of ultrafast electron diffraction Mohammad Shaaban <sup>1</sup> , Sami El-Borgi <sup>2</sup> & Aravind Krishnamoorthy <sup>1</sup> <sup></sup> Ultrafast electron diffraction (UED) experiments can extract insights into material behavior at ultrafast timescales but are limited by the manual analysis required to process several gigabytes of diffraction pattern data. The lack of real-time data prevents in situ tuning of experimental parameters toward desirable material dynamics or avoid sample damage. We demonstrate that machine learning methods based on Convolutional Neural Networks trained on synthetic and experimental diffraction patterns can perform real-time analysis of diffraction data to resolve dynamical processes in a representative material, MoTe 2, and identify signs of material damage. By building on CNN’s ability to learn compressed representations of diffraction patterns that map to distinct material dynamics, we construct Convolutional Variational Autoencoder models to track structural phase transformation in a model material system through the time trajectory of UED images in the low-dimensional latent space. Such models enable real-time steering of experimental parameters towards conditions that realize phase transformations or other desirable outcomes by mapping experimental conditions to distinct regions of the latent space. These examples show the ability of machine learning to design selfcorrecting diffraction experiments to optimize the use of large-scale user facilities. Keywords Machine learning, Ultrafast electron diffraction, Variational autoencoder, Self-supervised learning, Experimental design Ultrafast electron diffraction (UED) is an important technique for the characterization of sub-picosecond material dynamics with spatial resolutions approaching atomic length scales, particularly with mega-electronvolt electron sources at large scale user facilities. UED experiments, often lasting several hours, can record tens of thousands of distinct diffraction patterns amounting to several hundred gigabytes in raw image data that must be manually analyzed to infer material dynamics <sup>1</sup> . The LINAC Coherent Light Source (LCLS), for instance, has a repetition rate of 120 Hz with typical hit rates ranging from 1% to 30% <sup>2,3</sup>, depending on the performed experiment, adding up to several million distinct diffraction patterns in a single run. The next generation of light sources promises to increase data generation rate by orders of magnitude. This represents a significant problem for data analysis. Currently, hand-made algorithms are developed to search for particular features within the data with the goal to filter out a certain type of events (e.g. structural phase transformations) <sup>4</sup>, but such approaches are very time-consuming and do not generalize well to datasets from other materials <sup>5</sup> . Data analysis through these hand-crafted algorithms is often performed over the course of several weeks after the experiments to identify interesting material phenomena or properties <sup>6</sup> . This type of post-experimental data analysis precludes in situ tuning of experimental conditions like wavelength and intensity of the optical excitation, electron beam intensity, which are instead chosen in an ad hoc manner based on the physical intuition of the researcher. Such an empirical choice of experimental conditions is not guaranteed to result in the observation of desired material dynamics. It is also likely that the chosen experimental conditions can result in damage to the material samples and thus not lead to the collection of useful data. Machine learning (ML) is a promising solution to rapidly classify or predict molecular and crystal structure based on the observed diffraction pattern <sup>7–22</sup> . ML methods have been used to solve existing challenges related to diffraction and reciprocal space mapping <sup>23–28</sup> . ML algorithms have also been used for experimental design of scattering studies at user facilities, but such studies have been narrowly limited to optimization of beam and image quality <sup>29–31</sup> and not focused on image classification. Diffraction patterns are known to be excellent feature vectors for classifying material structure <sup>9</sup>, and CNNs have proven to be interpretable ML tools to classify and analyze 1 Department of Mechanical Engineering, Texas A & M University, College Station, USA. 2College of Science and Engineering, Hamad Bin Khalifa University, Doha, Qatar. <sup></sup> email: akrishnamoorthy@tamu.edu such diffraction patterns <sup>11</sup> . The success of neural networks in the regime of image processing, classification, object detection and segmentation provides a scalable method to tackle the challenge of classification of large UED datasets. While the application of ML approaches to the analysis of x-ray and electron diffraction patterns is wellestablished, there exist significant qualitative differences between conventional electron diffraction and ultrafast pump-probe electron diffraction. Therefore, existing ML pipelines require modifications before they can be effectively applied for analysis of UED data. The primary challenge in conventional electron or x-ray diffraction is to identify the crystal structure and chemical composition of a material from the diffraction pattern. ML algorithms developed for this purpose are required only to distinguish between qualitatively different diffraction patterns and classify them according to their respective point groups <sup>32–34</sup> . On the other hand, the primary motive for UED experiments is to identify and distinguish between dynamic processes in materials, including defect formation, phonon excitation, and phase transformation, which only subtly affect the measured diffraction pattern of the material. Therefore, ML models for analyzing UED data must be suitable for analyzing small or subtle changes in the UED diffraction data. Further, diffraction patterns from conventional sources are obtained over relatively large time-scales of a few milliseconds, at high electron currents <sup>35</sup> . This results in excellent signalto-noise ratios, with well-defined diffraction peak positions and widths. UED experiments collect diffraction patterns using femto-second electron pulses that result in significant shot noise, particularly for low-flux electron sources and analysis of diffuse scattering <sup>36</sup> . Therefore, ML models for analysis of UED data must be robust against source and detector noise. Here, we show that neural networks can be used to classify large quantities of diffraction data if they are previously trained on a qualitatively similar labeled synthetic dataset. Specifically, we describe a scheme that translates real-time changes in the measured reciprocal-space diffraction patterns to changes in the molecular configuration of a prototypical two-dimensional material, MoTe2, to identify desirable dynamical changes like structural phase transformations or understand material damage in real-time during experiments. We further describe how generative models, combined with convolutional neural networks, can identify the impact of different experimental parameters on the observed diffraction patterns and predict which experimental conditions are most likely to drive the material to explore interesting part of the phase space that result in previously unknown dynamics or properties. Results Convolutional neural networks (CNN) for classifying features in reciprocal space images MoTe2 is a prototypical transition metal dichalcogenide whose electronic properties and phase transformations are promising for future low-dimensional opto-electronic device applications. MoTe2 has two stable polytypes 2H and 1T’, which show hexagonal and monoclinic crystal respectively <sup>37–39</sup> . Reversible transformation between these two phases has been demonstrated through various external stimuli, such as thermal excitation, electronic gating and chemical doping, all of which can cause collective atomic displacements necessary to convert the 2H structure to the 1T’ structure <sup>40–43</sup> . Due to its strong structural response to optical excitation, Ultrafast electron diffraction experiments are an ideal probe to investigate light-driven structural changes in MoTe2. However, optical excitation induced by the UED pump probe can also result in other structural changes beyond phase transformation. Moderate excitation can induce thermal heating resulting in random atomic displacements, or the activation of specific phonon modes, which results in correlated motion of atoms. More intense excitation can induce thermally-driven vacancy formation and anisotropic heating, which can lead to lattice expansion and other lattice distortions. The strongest excitations lead to Te sublimation, material degradation and changes in material composition. It is difficult to identify a priori, the exact optical excitation parameters that result in selective excitation of those phonon modes responsible for the 2H-1T’ phase transformations and those responsible for material degradation. We demonstrate convolutional neural networks that can distinguish between the different deformations in MoTe2 induced by optical excitation, based on differences in their diffraction pattern Fig. 1. shows the layout of the convolutional neural network used to classify observed diffraction patterns. The CNN consists of 3 CNN blocks, each consisting of a pair of WideResNet layers <sup>44</sup> (each containing a pair of convolutional layers and a dropout layer) and a max-pooling layer, followed by a fully-connected network that classifies the input diffraction pattern into one of seven classes, each corresponding to a different type of structural distortion expected in the UED experiment. Fig. 1 . CNN architecture: ( a ) schematic of a single WideResNet layer containing convolution and dropout elements. ( b ) CNN architecture composed of three blocks, each containing two WideResNet layers and a max-pool layer for representation learning, followed by a single fully-connected layer for classification of noisy diffraction patterns based on structural changes in the material. We train the CNN model, CNNSyn, using synthetic data for CNN training. Specifically, we simulate diffraction patterns from monolayer MoTe2 crystal with 7 types of structural distortions, as illustrated in Fig. 2 and in the Methods section. The first set of images, Class 0, is generated from pristine defect-free and distortion-free MoTe2 2H crystal with random thermal atomic displacements. Class 1 is generated from 2H MoTe2 structures that contain various concentrations of Mo and Te vacancies. The next set of images, Class 2, is created from 2H MoTe2 structures that contain various degrees of isotropic and anisotropic lattice deformation. The fourth set of images, Class 3, is formed from 2H MoTe2 structures that contain collective displacement due to various phonon modes. The next set of images, Class 4, is created from 1T’ MoTe2 structures that contain various concentrations of Mo and Te vacancies. The sixth set of images, Class 5, is generated from 1T’ MoTe2 structures that contain various degrees of isotropic and anisotropic lattice deformation. The final set of images (Class 6) is produced from 1T’ MoTe2 structures that contain collective deformation due to various phonon modes. Due to the lack of high-quality, well-annotated experimental diffraction patterns for supervised learning, synthetic data is widely used as a potential method to generate scalable datasets in electron microscopy settings <sup>45–48</sup>, because physics-based simulations and data generation and labeling, can generate bias-free and reproducible data across all possible experimental condition in a high-throughput manner at substantially lower cost. Furthermore, UED analysis relies on relatively subtle changes in diffraction patterns to identify material dynamics. Therefore, we provide this inductive bias to the diffraction data by subtracting the diffraction pattern of a pristine, defect-free, un-deformed 2H in its vibrational ground state from the input image. Specifically, this subtraction is used to generate a 2-channel image - positive deviations (i.e. increase in intensity) from the diffraction pattern of the pristine, defect-free, un-deformed 2H in its vibrational ground state are stored in the red channel, while negative deviations (i.e. decrease in intensity) are stored in the blue channel. This unique data modification greatly increases the variance in the input data and improves the sensitivity of the CNNSyn model to small variations in the diffraction pattern. Example training data from different class both before and after subtraction, is shown in Fig. 2. It can be clearly seen that the signatures of each class of lattice distortion is encoded in the distribution of red and blue values over the different regions of the diffraction image. The CNN was trained to minimize the cross-entropy loss for this multi-class classification problem using standard techniques (see Methods section). The confusion matrix in Fig. 3 summarizes the performance of CNNSyn in classifying structural distortions in MoTe2. CNNSyn demonstrates high accuracy and reliability by correctly identifying the majority of instances across the dissimilar classes. The lowest class accuracy for the CNN was recorded for Class 2, where 967 out of 996 instances were classified correctly, reflecting an accuracy 97%. The primary misclassifications suggest some feature overlap between Classes 0 and 2. The confusion matrix also includes an additional Class 6, which contains diffraction images that do not belong to any of the other five classes. The purpose of this class was to assess the model’s ability to recognize and classify images that exhibit structural distortions that don’t belong to any of the predefined categories. These results highlight the CNN’s Overall high accuracy - greater than 98%and effectiveness in classifying different structural distortions in MoTe2. Such a high accuracy on synthetic data is known to correspond to approximately 94% accuracy in experimental test data, as seen in other deep learning approaches to crystallography <sup>49</sup> . Transfer learning for experimental UED data ML models for conventional x-ray and electron diffraction benefit from existing large and curated datasets of diffraction patterns from known materials and crystal structures. In contrast, the public availability of ultrafast electron diffraction datasets is very limited, since UED experiments can only be performed at a limited number of facilities with MeV electron beams. Therefore, in order to develop a general scheme for the design and analysis of UED data, we propose a two-stage approach that uses easily-generated synthetic data to develop a CNN-based classification model, which is subsequently updated to use experimental UED data through transfer learning. To demonstrate the feasibility of transfer learning, we update the CNNSyn model developed in the previous section using 77 experimental images. Transfer learning is performed by retraining the model against the experimental UED images at a significantly reduced learning rate (0.001 vs 0.01 for training with synthetic data). All model parameters, including weights and biases for the representation layer (WideResNet blocks) Fig. 2 . Training data samples: ( a ) raw UED image samples of 2H and 1T MoTe2 crystals, ( b ) UED images after subtraction of reference image of MoTe2 2H crystal. Red (blue) regions indicate positive (negative) deviations from the reference 2H UED image. Fig. 3 . Confusion matrix illustrating the classification performance of the CNN, highlighting both accuracy and misclassifications. Fig. 4 . Transfer learning: ( a ) time-trajectory of experimental UED images. ( b ) CNNSyn, trained only on synthetic data, has poor performance in classifying experimental data, but transfer-learned CNNExp model demonstrates no unphysical classifications and indicates the presence of phonons after optical excitation. and the classification layer (FNN layer) are tuned during the retraining process. Figure 4 shows representative input images from the synthetic and experimental UED dataset and the performance of the CNNSyn model and the transfer-learned CNNExp model on the experimental test dataset. To demonstrate the performance of the retrained model, we plot the predicted classification of a previously reported UED dataset of pumpprobe experiments on MoTe2 monolayers. Manual analysis of the MoTe2 UED patterns demonstrated the excitation of phonon modes (predominantly the M-point and K-point phonon modes <sup>4</sup> ) due to optical excitation. CNNSyn predicts unphysical changes in structure classification over short timescales of 10 ps. The transferlearned CNNExp model performs significantly better on this experimental dataset, preventing the unphysical classification changes on short timescales, as well as predicting the emergence of phonon modes after optical excitation, consistent with experimental observations. This result demonstrates that the two-stage scheme proposed in this section, including transfer learning, is a feasible approach to employ for real-time classification of experimental UED patterns. Experimental design using generative C-VAE and self-supervised learning Experimental design for ultrafast electron diffraction involves the identification of experimental conditions (e.g. beam power, repetition rate etc.) that can result in desirable changes to the sample’s diffraction pattern (e.g. phase transformations and excitations of specific vibrational modes). In order to steer experimental conditions towards promising regions of the phase-space, we develop a generative Convolutional Variational Autoencoder (C-VAE) model (Fig. 5) to identify a collapsed low-dimensional representation of different diffraction patterns within the model’s latent space, with similar diffraction patterns being clustered together within the lowdimensional latent space. In the case of MoTe2, an example of a promising experimental condition is one responsible for transforming 2H MoTe2 to 1T’ MoTe2. To identify such promising conditions, we first compute the latent space distribution of diffraction patterns from both 2H MoTe2 and 1T’ MoTe2, Figure 6. Additionally, we compute the latent space distribution of a set of images that are pixel-by-pixel interpolations of diffraction patterns from a desirable dynamical process, e.g. 2H MoTe2 and 1T’ MoTe2. The latent space distribution of these interpolated images Fig. 5 . Schematic of variational auto-encoder depicting the distribution of 2H and 1T diffraction patterns in the latent space. Fig. 6 . Types of MoTe2 diffraction patterns: ( a ) Representative crystal structures of 2H, 1T’ and defective MoTe2 and MoTe2 undergoing phase transformation. ( b ) Diffraction patterns of different MoTe2 configurations that cluster in different regions of the C-VAE latent space. represents the expected trajectory of diffraction patterns of MoTe2 samples undergoing phase transformation from the 2H to 1T’ crystal structures. On the other hand, unexpected or undesirable structural changes, such as lattice melting or degradation will lead to molecular configurations and diffraction patterns that are significantly different from those of either 2H or 1T’ MoTe2. Therefore, these diffraction patterns from defective structures (and the experimental conditions leading to them) will be represented in the latent space as clusters distinct from those of the images representing the 2H, 1T or interpolated diffraction patterns. By exploiting the well-structured nature of the latent space in C-VAE, which ensures that similar diffraction patterns are clustered together, such models can identify, in real-time, a promising experimental condition by computing the n-dimensional Euclidean distance between a given diffraction pattern and a line connecting the 2H and 1T’ patterns in the VAE’s latent space. Distance measures in the latent space of generative models have previously been used as a metric for the similarity of input images or molecular structures in materials chemistry and other engineering applications <sup>50–52</sup> . By identifying experimental conditions that result in diffraction patterns close to the 2H and 1T’ patterns in the latent space, we can drive experiments towards conditions that induce the structural phase transformation. The encoder (decoder) of the C-VAE is a sequence of three convolutional (deconvolutional) layers followed by batchnorm and activation (ReLU) layers. The encoder performs a dimensionality reduction of the input diffraction pattern to a four-dimensional latent space. During C-VAE training, the Adam optimizer was used to update model parameters. The C-VAE model is trained to reduce the total loss, which is a sum of two components - Mean Squared Error, and Kullback-Leiber Divergence. The Mean Squared Error (MSE) loss quantifies the difference between input and reconstructed diffraction pattern image <sup>53</sup> . The Kullback-Leibler divergence loss (KL) which contribute in regularizing and shaping the latent space into a Gaussian probability distribution <sup>54</sup> . Figure 7 shows the t-SNE projection of the latent space representation of different diffraction patterns from five MoTe2 crystals, 2H MoTe2, 1T’ MoTe2, pixel-by-pixel interpolation of diffraction patterns between 2H and 1T’ MoTe2, crystals undergoing a phase transformation, and defective or molten MoTe2. The region enclosed by the distribution of 2H, 1T’, and interpolated MoTe2 diffraction patterns defines the region of expected diffraction patterns due to the phase transformation. Synthetic diffraction patterns of MoTe2 crystals undergoing the 2H-1T’ phase transformation lies within the expected region. In contrast, the diffraction patterns corresponding to the defective or molten MoTe2 fall outside the defined region, indicating that experimental conditions that result in such diffraction patterns are not optimal in inducing a 2H-1T’ phase transformation. Discussion In conclusion, we have developed two machine learning methods, based on convolutional neural networks to provide real-time analysis of UED images and assist in real-time design of UED experimental parameters. CNNSyn, trained on synthetic data, and CNNExp, trained by transfer learning, are both shown to be effective Fig. 7 . Experimental design using the VAE latent space: Distribution of 2H, 1T’ and interpolated diffraction patterns defines the trajectory of MoTe2 crystals undergoing a phase transformation. Diffraction patterns from defective or molten MoTe2 structures fall outside the region describing the phase transformation. tool to classify UED images and identify defect formation, lattice distortions and phase transformations in a model material system, MoTe2. Convolutional VAEs (C-VAEs) can perform dimensionality reduction and clustering of different crystal structures. Euclidean distance metrics in the latent space of the C-VAE provide a metric to identify changes in experimental parameters required to induce desired structural changes or phase transformations. Methods Synthetic data generation for CNNSyn and VAE training Simulated electron diffraction patterns are generated by calculating the static structure factor on a uniform 261 _×_ 261 reciprocal grid centered on the origin using the standard formula given below. _N_ _k_ =1 ∑ _I_ (q) = _N_ _j_ =1 ∑ _fjfk_ e <sup>_−i_</sup> <sup>q</sup> <sup>_·_</sup> <sup>(R</sup> <sup>_j_</sup> <sup>_−_</sup> <sup>R</sup> <sup>_k_</sup> <sup>)</sup> (1) where the intensity _I_ at reciprocal point q depends on positions, Ri, and atomic form factors, _fi_, of Mo and Te atoms in the crystal structure. Diffraction patterns are generated for seven classes of the crystals – 2H and 1T’ crystal with defects, lattice distortion, and phonons, as well as pristine defect-free 2H crystal as a reference. For UED simulations, defective crystals are constructed by creating vacancies at up to 20% of lattice sites. Distorted lattices are constructed by applying a random strain tensor, with normal and shear components up to 10%. Crystal structures with phonon modes are generated by displacing the atoms from the perfect crystal structure along a random phonon eigenmode generated using the phonopy package <sup>55</sup> . Thermal displacement of atoms is included in the generation of all synthetic data. Each diffraction pattern in training and test data includes up to 50% noise to replicate the noise level of experimental UED data. The training dataset is augmented by 2-fold rotation of each diffraction image <sup>56</sup> . Unlike other ML models for diffraction pattern classification, ML models for UED must emphasize identification and classification of subtle changes in diffraction patterns. Therefore, synthetic data for the CNNSyn model is generated as a 2-channel RGB image, where the red and blue channels capture the positive and negative deviations from the diffraction pattern of a pristine defect-free 2H crystal respectively. In all, a large dataset comprising 70,000 synthetic diffraction images was generated, with raw diffraction images used for VAE training and subtracted, 2-channel diffraction images used for CNNSyn training. CNN models for classifying UED diffraction patterns The CNN contains 3 WideResNet blocks, made up of convolutional and pooling blocks connected by rectified linear unit (ReLU) activation functions. Dropout layers were included in each WideResNet block to prevent overfitting. Network weights are updated using the Adam optimizer. Training was conducted over a maximum 40 epochs, with early stopping based on target validation accuracy of 85% and patience of 2 epochs. Hyperparameter tuning was performed by varying the learning rate and batch size across twelve runs. VAE models for experiment design The VAE architecture comprises an encoder and decoder network, trained to encode input images into a lowerdimensional latent space and subsequently decode them back to their original dimensions. The original dataset images were resized to 256 _×_ 256 pixels and transformed into tensors. The batch sizes were 64 and 20 for training and testing, respectively. 3-channel input images pass through four convolutional layers and ReLU activations in the encoder. The resulting feature map is flattened and passed through two fully connected layers to produce the mean and log-variance of the latent space distribution. The decoder takes the latent vectors as input through a fully-connected layer to upscale the latent vectors to match the flattened feature map size, followed by four transposed convolutional layers to reconstruct the image. ReLU activations were utilized in all layers except the final layer, which used a sigmoid activation to produce outputs between 0 and 1., reflecting the intensity of each pixel in the 256 _×_ 256 image. We trained the VAE model using the Adam optimizer with a learning rate of 1 _._ 5 _×_ 10 <sup>_−_</sup> <sup>4</sup> over 100 epochs. Data availability [All code for CNN and C-VAE models is available at https://github.com/MATSAIL-TAMU/ML-UED. Synthetic](https://github.com/MATSAIL-TAMU/ML-UED) data and labels for CNN training is available from the corresponding author, Aravind Krishnamoorthy, on request. Received: 5 February 2025; Accepted: 11 June 2025 References 1. Filippetto, D. et al. Ultrafast electron diffraction: Visualizing dynamic states of matter. _Rev. Mod. Phys._ 94, 045004 (2022). 2. ...Emma, P. et al. First lasing and operation of an ångstrom-wavelength free-electron laser. _Nat. Photon._ 4 [, 641. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​](https://doi.org/10.1038/nphoton.2010.176) [1​0​3​8​/​n​p​h​o​t​o​n​.​2​0​1​0​.​1​7​6 (2010).](https://doi.org/10.1038/nphoton.2010.176) ​ 3. Bostedt, C. et al. Linac coherent light source: The first five years. _Rev. Mod. Phys._ 88 [, 015007. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​1​0​3​/​R​e​v​M​o​d​P​h​y​](https://doi.org/10.1103/RevModPhys.88.015007) [s​.​8​8​.​0​1​5​0​0​7 (2016).](https://doi.org/10.1103/RevModPhys.88.015007) ​ 4. ...Krishnamoorthy, A. et al. Optical control of non-equilibrium phonon dynamics. _Nano Lett._ 19 [, 4981. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​2​1​/​a​c​](https://doi.org/10.1021/acs.nanolett.9b01179) [s​.​n​a​n​o​l​e​t​t​.​9​b​0​1​1​7​9 (2019).](https://doi.org/10.1021/acs.nanolett.9b01179) ​ 5. Ma, Z.-R., Qi, F.-F. & Xiang, D. Probing molecular dynamics with ultrafast electron diffraction. _Chin. J. Chem. Phys._ 34, 15 (2021). 6. Ge, M., Su, F., Zhao, Z. & Su, D. Deep learning analysis on microscopic imaging in materials science. _Mater. Today Nano_ 11, 100087 (2020). 7. Ekeberg, T., Engblom, S. & Liu, J. Machine learning for ultrafast x-ray diffraction patterns on large-scale GPU clusters. _Int. J. High_ _Perform. Comput. Appl._ 29 [, 233. https://doi.org/10.1177/1094342015572030 (2015).](https://doi.org/10.1177/1094342015572030) 8. Laanait, N., Zhang, Z. & Schlepütz, C. Imaging nanoscale lattice variations by machine learning of X-ray diffraction microscopy data. _Nanotechnology_ 27 [, 374002. https://doi.org/10.1088/0957-4484/27/37/374002 (2016).](https://doi.org/10.1088/0957-4484/27/37/374002) 9. Meredig, B. & Wolverton, C. A hybrid computational-experimental approach for automated crystal structure solution. _Nat. Mater._ 12 [( 2012). https://doi.org/10.1038/nmat3490](https://doi.org/10.1038/nmat3490) 10. Park, W. et al. Classification of crystal structure using a convolutional neural network. IUCrJ 4 [( 2017). ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​1​0​7​/​S​](https://doi.org/10.1107/S205225251700714X) [2​0​5​2​2​5​2​5​1​7​0​0​7​1​4​X](https://doi.org/10.1107/S205225251700714X) ​ 11. Wang, H. et al. Rapid identification of X-ray diffraction patterns based on very limited data by interpretable convolutional neural networks. _J. Chem. Inf. Model._ 60 [, 2004. https://doi.org/10.1021/acs.jcim.0c00020 (2020).](https://doi.org/10.1021/acs.jcim.0c00020) 12. Kaufmann, K. et al. Crystal symmetry determination in electron diffraction using machine learning. _Science_ 367 [, 564. ​h​t​t​p​s​:​/​/​d​o​i​.​](https://doi.org/10.1126/science.aay3062) [o​r​g​/​1​0​.​1​1​2​6​/​s​c​i​e​n​c​e​.​a​a​y​3​0​6​2 (2020).](https://doi.org/10.1126/science.aay3062) ​ 13. Zaloga, A., Stanovov, V., Bezrukova, O., Dubinin, P. & Yakimov, I. Crystal symmetry classification from powder X-ray diffraction patterns using a convolutional neural network. _Mater. Today Commun._ 25 [, 101662. https://doi.org/10.1016/j.mtcomm.2020.101662](https://doi.org/10.1016/j.mtcomm.2020.101662) (2020). 14. Zimmermann, J. et al. Deep neural networks for classifying complex features in diffraction images. _Phys. Rev. E_ 99 [(2019). ​h​t​t​p​s​:​/​](https://doi.org/10.1103/PhysRevE.99.063309) [/​d​o​i​.​o​r​g​/​1​0​.​1​1​0​3​/​P​h​y​s​R​e​v​E​.​9​9​.​0​6​3​3​0​9](https://doi.org/10.1103/PhysRevE.99.063309) ​ 15. Ziletti, A., Kumar, D., Scheffler, M. & Ghiringhelli, L. Insightful classification of crystal structures using deep learning. _Nat._ _Commun._ 9 [( 2018). https://doi.org/10.1038/s41467-018-05169-6](https://doi.org/10.1038/s41467-018-05169-6) 16. Vecsei, P., Choo, K., Chang, J. & Neupert, T. Neural network-based classification of crystal symmetries from X-ray diffraction patterns ( 2018) 17. Tiong, L., Kim, J., Han, S. S. & Kim, D. Identification of crystal symmetry from noisy diffraction patterns by a shape analysis and deep learning. npj Comput. Mater. 6 [( 2020). https://doi.org/10.1038/s41524-020-00466-5](https://doi.org/10.1038/s41524-020-00466-5) 18. Cherukara, M. et al. Ai-enabled high-resolution scanning coherent diffraction imaging. _Appl. Phys. Lett._ 117 [, 044103. ​h​t​t​p​s​:​/​/​d​o​i​.​](https://doi.org/10.1063/5.0013065) [o​r​g​/​1​0​.​1​0​6​3​/​5​.​0​0​1​3​0​6​5 (2020).](https://doi.org/10.1063/5.0013065) ​ 19. Suzuki, Y., Hino, H., Hawai, T., Saito, K., Kotsugi, M. & Ono, K. Symmetry prediction and knowledge discovery from X-ray diffraction patterns using an interpretable machine learning approach. _Sci. Rep._ 10 [( 2020). ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​3​8​/​s​4​1​5​9​8​-​0​2​0​-​7​](https://doi.org/10.1038/s41598-020-77474-4) [7​4​7​4​-​4](https://doi.org/10.1038/s41598-020-77474-4) ​ 20. Yann, M. & Tang, Y. Learning deep convolutional neural networks for X-ray protein crystallization image analysis. In Proceedings [of the AAAI Conference on Artificial Intelligence. Vol. 30 ( 2016). https://doi.org/10.1609/aaai.v30i1.10150](https://doi.org/10.1609/aaai.v30i1.10150) 21. Ra, M. et al. Classification of crystal structures using electron diffraction patterns with a deep convolutional neural network. _RSC_ _Adv._ 11 [, 38307. https://doi.org/10.1039/D1RA07156D (2021).](https://doi.org/10.1039/D1RA07156D) 22. Bridger, A., David, W., Wood, T., Danaie, M. & Butler, K. Versatile domain mapping of scanning electron nanobeam diffraction datasets utilising variational autoencoders, npj Comput. Mater. 9 [( 2023). https://doi.org/10.1038/s41524-022-00960-y](https://doi.org/10.1038/s41524-022-00960-y) 23. Scheinker, A. & Pokharel, R. Adaptive 3D convolutional neural network- based reconstruction method for 3D coherent diffraction imaging. _J. Appl. Phys._ 128 [, 1. https://doi.org/10.1063/5.0014725 (2020).](https://doi.org/10.1063/5.0014725) 24. Cherukara, M., Nashed, Y. & Harder, R. Real-time coherent diffraction inversion using deep generative networks ( 2018) 25. Xu, W. & LeBeau, J. A deep convolutional neural network to analyze position averaged convergent beam electron diffraction patterns. _Ultramicroscopy_ 188 [( 2017). https://doi.org/10.1016/j.ultramic.2018.03.004](https://doi.org/10.1016/j.ultramic.2018.03.004) 26. Rupp, D. et al. Generation and structure of extremely large clusters in pulsed jets. _J. Chem. Phys._ 141 [, 044306. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​](https://doi.org/10.1063/1.4890323) [0​6​3​/​1​.​4​8​9​0​3​2​3 (2014).](https://doi.org/10.1063/1.4890323) ​ 27. Barke, I. et al. The 3D-architecture of individual free silver nanoparticles captured by X-ray scattering. _Nat. Commun._ 6, 6187. [https://doi.org/10.1038/ncomms7187 (2015).](https://doi.org/10.1038/ncomms7187) 28. Lundholm, I. et al. Considerations for three-dimensional image reconstruction from experimental data in coherent diffractive imaging. _IUCrJ_ 5 [, 531. https://doi.org/10.1107/S2052252518010047 (2018).](https://doi.org/10.1107/S2052252518010047) 29. Zhang, Z. et al. Toward fully automated UED operation using two-stage machine learning model. _Sci. Rep._ 12 [( 2022). ​h​t​t​p​s​:​/​/​d​o​i​](https://doi.org/10.1038/s41598-022-08260-7) [.​o​r​g​/​1​0​.​1​0​3​8​/​s​4​1​5​9​8​-​0​2​2​-​0​8​2​6​0​-​7](https://doi.org/10.1038/s41598-022-08260-7) ​ 30. Ji, F. et al. Multi-objective Bayesian active learning for MeV-ultrafast electron diffraction. Nat. Commun. 15 [( 2024). ​h​t​t​p​s​:​/​/​d​o​i​.​o​](https://doi.org/10.1038/s41467-024-48923-9) [r​g​/​1​0​.​1​0​3​8​/​s​4​1​4​6​7​-​0​2​4​-​4​8​9​2​3​-​9](https://doi.org/10.1038/s41467-024-48923-9) ​ 31. Zhang, Z. et al. Accurate prediction of mega-electron-volt electron beam properties from UED using machine learning. _Sci. Rep._ 11 [( 2021) https://doi.org/10.1038/s41598-021-93341-2](https://doi.org/10.1038/s41598-021-93341-2) 32. Szymanski, N. J. et al. Adaptively driven X-ray diffraction guided by machine learning for autonomous phase identification. _npj_ _Comput. Math_ . 9 [, 31 ( 2023). https://doi.org/10.1038/s41524-023-00984-y](https://doi.org/10.1038/s41524-023-00984-y) 33. Salgado, J. et al. Automated classification of big X-ray diffraction data using deep learning models. _npj Comput. Mater._ 9 ( 2023). [https://doi.org/10.1038/s41524-023-01164-8](https://doi.org/10.1038/s41524-023-01164-8) 34. Chen, J. et al. Automated crystal system identification from electron diffraction patterns using multiview opinion fusion machine learning. _Proc. Natl. Acad. Sci._ 120 [, e2309240120. https://doi.org/10.1073/pnas.2309240120 (2023).](https://doi.org/10.1073/pnas.2309240120) 35. Filippetto, D. et al. Ultrafast electron diffraction: Visualizing dynamic states of matter. _Rev. Mod. Phys._ 94 [, 045004. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​](https://doi.org/10.1103/RevModPhys.94.045004) [1​0​.​1​1​0​3​/​R​e​v​M​o​d​P​h​y​s​.​9​4​.​0​4​5​0​0​4 (2022).](https://doi.org/10.1103/RevModPhys.94.045004) ​ 36. Kealhofer, C., Lahme, S., Urban, T. & Baum, P. Signal-to-noise in femtosecond electron diffraction. _Ultramicroscopy_ 159, 19 ( [2015). https://doi.org/10.1016/j.ultramic.2015.07.004](https://doi.org/10.1016/j.ultramic.2015.07.004) 37. Zhao, W. et al. Synthesis and electronic structure of atomically thin 2h-mote2. _Nanoscale_ 17 [, 10901. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​3​9​/​D​4​N​](https://doi.org/10.1039/D4NR05191B) [R​0​5​1​9​1​B (2025).](https://doi.org/10.1039/D4NR05191B) ​ 38. Tao, L., Zhou, Y. & Xu, J.-B. Phase-controlled epitaxial growth of mote2: Approaching high-quality 2D materials for electronic devices with low contact resistance. _J. Appl. Phys._ 131 [, 110902. https://doi.org/10.1063/5.0073650 (2022).](https://doi.org/10.1063/5.0073650) 39. Yelgel, C. et al. Engineering the electronic properties of mote2 via defect control. _Sci. Technol. Adv. Mater._ 25, 2388502 ( 2024). [https://doi.org/10.1080/14686996.2024.2388502](https://doi.org/10.1080/14686996.2024.2388502) 40. Wang, Y. et al. Structural phase transition in monolayer mote2 driven by electrostatic doping. _Nature_ 550 [( 2017). ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​](https://doi.org/10.1038/nature24043) [1​0​.​1​0​3​8​/​n​a​t​u​r​e​2​4​0​4​3](https://doi.org/10.1038/nature24043) ​ 41. Shi, J. et al. Intrinsic 1 _T_ <sup>_′_</sup> phase induced in atomically thin 2h-mote2 by a single terahertz pulse. _Nat. Commun._ 14 [( 2023) ​h​t​t​p​s​:​/​](https://doi.org/10.1038/s41467-023-41291-w) [/​d​o​i​.​o​r​g​/​1​0​.​1​0​3​8​/​s​4​1​4​6​7​-​0​2​3​-​4​1​2​9​1​-​w](https://doi.org/10.1038/s41467-023-41291-w) ​ 42. Kowalczyk, H. et al. Gate and temperature driven phase transitions in few-layer mote2. _ACS Nano_ 17 [, 6708. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​2​](https://doi.org/10.1021/acsnano.2c12610) [1​/​a​c​s​n​a​n​o​.​2​c​1​2​6​1​0 (2023).](https://doi.org/10.1021/acsnano.2c12610) ​ 43. Awate, S. S. et al. Strain-induced 2h to 1t’ phase transition in suspended mote2 using electric double layer gating. _ACS Nano_ 17, [22388. https://doi.org/10.1021/acsnano.3c04701 (2023).](https://doi.org/10.1021/acsnano.3c04701) [44. Zagoruyko, S. & Komodakis, N. Wide Residual Networks ( 2017). arXiv:1605.07146 [cs.CV]](http://arxiv.org/abs/1605.07146) 45. Cid-Mejias, A., Alonso-Calvo, R., Gavilan, H., Crespo, J. & Maojo, V. A deep learning approach using synthetic images for segmenting and estimating 3d orientation of nanoparticles in em images. _Comput. Methods Prog. Biomed._ 202, 105958 ( 2021). [https://doi.org/10.1016/j.cmpb.2021.105958](https://doi.org/10.1016/j.cmpb.2021.105958) 46. Ziatdinov, M., Ghosh, A., Wong, C. & Kalinin, S. Atomai framework for deep learning analysis of image and spectroscopy data in electron and scanning probe microscopy. _Nat. Mach. Intell._ 4 [( 2022). https://doi.org/10.1038/s42256-022-00555-8](https://doi.org/10.1038/s42256-022-00555-8) 47. Lynch, M. J., Jacobs, R., Bruno, G., Patki, P., Morgan, D. & Field, K. G. Accelerating domain-aware electron microscopy analysis [using deep learning models with synthetic data and image-wide confidence scoring ( 2024). arXiv:2408.01558 [cs.CV]](http://arxiv.org/abs/2408.01558) 48. DaCosta, L. R., Sytwu, K., Groschner, C. K. & Scott, M. C. A robust synthetic data generation framework for machine learning in high-resolution transmission electron microscopy (HRTEM). _npj Comput. Mater._ 10 [( 2024). ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​3​8​/​s​4​1​5​2​4​-​0​2​](https://doi.org/10.1038/s41524-024-01336-0) [4​-​0​1​3​3​6​-​0](https://doi.org/10.1038/s41524-024-01336-0) ​ [49. Souza, A. et al. Deepfreak: Learning crystallography diffraction patterns with automated machine learning ( 2019). arXiv:1904.11834](http://arxiv.org/abs/1904.11834) [cs.LG] 50. Tsutsumi, M., Saito, N., Koyabu, D. & Furusawa, C. A deep learning approach for morphological feature extraction based on variational auto-encoder: an application to mandible shape. _NPJ Syst. Biol. Appl._ 9 [, 30. ​h​t​t​p​s​:​/​/​d​o​i​.​o​r​g​/​1​0​.​1​0​3​8​/​s​4​1​5​4​0​-​0​2​3​-​0​0​2​9​](https://doi.org/10.1038/s41540-023-00293-6) [3​-​6 (2023).](https://doi.org/10.1038/s41540-023-00293-6) ​ 51. Bjerrum, E. J. & Sattarov, B. Improving chemical autoencoder latent space and molecular de novo generation diversity with heteroencoders. _Biomolecules_ 8 [( 2018). https://doi.org/10.3390/biom8040131](https://doi.org/10.3390/biom8040131) 52. Sellner, M., Mahmoud, A. & Lill, M. Efficient virtual high-content screening using a distance-aware transformer model. _J._ _Cheminform._ 15 ( 2023) 53. Regenwetter, L., Nobari, A. H. & Ahmed, F. Deep generative models in engineering design: A review. _J. Mech. Des._ 144, 071704 [(2022). https://doi.org/10.1115/1.4053859. ​h​t​t​p​s​:](https://doi.org/10.1115/1.4053859) ​ / ​ /​a​s​m​e​d​i​g​i​t​a​l​c​o​l​l​e ​ c​t​i​o ​ n ​ .​a​s​m ​ e ​ .​o ​ r​g​/​m ​ [e​c​h​a​n](https://asmedigitalcollection.asme.org/mechanicaldesign/article-pdf/144/7/071704/6866682/md_144_7_071704.pdf) ​ i​c​a​l​d​e ​ s​ig​n​/ ​ ​ a​r​t​i ​ c​l ​ e​- ​ p​d​f ​ /​14​4 ​ ​ /​7​/​0 ​ 7​1 ​ 7​0​4​/​6​8 ​ 6​6 ​ 6​8 ​ 2​/ ​ m ​ [d​_​1​4​4​_​7](https://asmedigitalcollection.asme.org/mechanicaldesign/article-pdf/144/7/071704/6866682/md_144_7_071704.pdf) ​ _​0​7​1​7​0​4​.​p​d​f. 54. Asperti, A. & Trentin, M. Balancing reconstruction error and Kullback-Leibler divergence in variational autoencoders. _IEEE Access_ 8, 199440 (2020). 55. Togo, A., Chaput, L., Tadano, T. & Tanaka, I. Implementation strategies in phonopy and phono3py. _J. Phys. Condens. Matter_ 35, [353001. https://doi.org/10.1088/1361-648X/acd831 (2023).](https://doi.org/10.1088/1361-648X/acd831) 56. Oviedo, F. ET AL. Fast and interpretable classification of small X-ray diffraction datasets using data augmentation and deep neural [networks ( 2019). arXiv:1811.08425 [physics.data-an]](http://arxiv.org/abs/1811.08425) Acknowledgements MS and SEB are thankful to Qatar Foundation and Texas A&M University at Qatar for the research funding of the mechanical engineering high-impact project and the fellowship program. Author contributions MS and AK performed the materials modeling and machine learning research. MS and SEB prepared and reviewed all figures in the manuscript. All authors wrote and reviewed the main manuscript text. Declarations Competing intereests The authors declare no competing interests. Additional information Correspondence and requests for materials should be addressed to A.K. Reprints and permissions information is available at 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-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, 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 you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. 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 ​h​t​t​p​:​/​/​c​r​e​a​t​i​v​e​c​o​m​m​o​](http://creativecommons.org/licenses/by-nc-nd/4.0/) [n​s​.​o​r​g​/​l​i​c​e​n​s​e​s​/​b​y​-​n​c​-​n​d​/​4​.​0​/.](http://creativecommons.org/licenses/by-nc-nd/4.0/) ​​ © The Author(s) 2025

섹션 본문 28문단 · 23,204자

(제목 없음)

1Ultrafast electron diffraction (UED) experiments can extract insights into material behavior atultrafast timescales but are limited by the manual analysis required to process several gigabytes of diffraction pattern data.The lack of real-time data prevents in situ tuning of experimental parameters toward desirable material dynamics or avoid sample damage.We demonstrate that machine learning methods based on Convolutional Neural Networks trained on synthetic and experimental diffraction patterns can perform real-time analysis of diffraction data to resolve dynamical processes in a representative material, MoTe 2 , and identify signs of material damage.By building on CNN's ability to learn compressed representations of diffraction patterns that map to distinct material dynamics, we construct Convolutional Variational Autoencoder models to track structural phase transformation in a model material system through the time trajectory of UED images in the low-dimensional latent space.Such models enable real-time steering of experimental parameters towards conditions that realize phase transformations or other desirable outcomes by mapping experimental conditions to distinct regions of the latent space.These examples show the ability of machine learning to design selfcorrecting diffraction experiments to optimize the use of large-scale user facilities.

2such diffraction patterns 11 .The success of neural networks in the regime of image processing, classification, object detection and segmentation provides a scalable method to tackle the challenge of classification of large UED datasets.

3While the application of ML approaches to the analysis of x-ray and electron diffraction patterns is wellestablished, there exist significant qualitative differences between conventional electron diffraction and ultrafast pump-probe electron diffraction.Therefore, existing ML pipelines require modifications before they can be effectively applied for analysis of UED data.The primary challenge in conventional electron or x-ray diffraction is to identify the crystal structure and chemical composition of a material from the diffraction pattern.ML algorithms developed for this purpose are required only to distinguish between qualitatively different diffraction patterns and classify them according to their respective point groups [32][33][34] .On the other hand, the primary motive for UED experiments is to identify and distinguish between dynamic processes in materials, including defect formation, phonon excitation, and phase transformation, which only subtly affect the measured diffraction pattern of the material.Therefore, ML models for analyzing UED data must be suitable for analyzing small or subtle changes in the UED diffraction data.Further, diffraction patterns from conventional sources are obtained over relatively large time-scales of a few milliseconds, at high electron currents 35 .This results in excellent signalto-noise ratios, with well-defined diffraction peak positions and widths.UED experiments collect diffraction patterns using femto-second electron pulses that result in significant shot noise, particularly for low-flux electron sources and analysis of diffuse scattering 36 .Therefore, ML models for analysis of UED data must be robust against source and detector noise.

4Here, we show that neural networks can be used to classify large quantities of diffraction data if they are previously trained on a qualitatively similar labeled synthetic dataset.Specifically, we describe a scheme that translates real-time changes in the measured reciprocal-space diffraction patterns to changes in the molecular configuration of a prototypical two-dimensional material, MoTe2, to identify desirable dynamical changes like structural phase transformations or understand material damage in real-time during experiments.We further describe how generative models, combined with convolutional neural networks, can identify the impact of different experimental parameters on the observed diffraction patterns and predict which experimental conditions are most likely to drive the material to explore interesting part of the phase space that result in previously unknown dynamics or properties.

Convolutional neural networks (CNN) for classifying features in reciprocal space images

5MoTe2 is a prototypical transition metal dichalcogenide whose electronic properties and phase transformations are promising for future low-dimensional opto-electronic device applications.MoTe2 has two stable polytypes -2H and 1T' , which show hexagonal and monoclinic crystal respectively [37][38][39] .Reversible transformation between these two phases has been demonstrated through various external stimuli, such as thermal excitation, electronic gating and chemical doping, all of which can cause collective atomic displacements necessary to convert the 2H structure to the 1T' structure [40][41][42][43] .Due to its strong structural response to optical excitation, Ultrafast electron diffraction experiments are an ideal probe to investigate light-driven structural changes in MoTe2.

6However, optical excitation induced by the UED pump probe can also result in other structural changes beyond phase transformation.Moderate excitation can induce thermal heating resulting in random atomic displacements, or the activation of specific phonon modes, which results in correlated motion of atoms.More intense excitation can induce thermally-driven vacancy formation and anisotropic heating, which can lead to lattice expansion and other lattice distortions.The strongest excitations lead to Te sublimation, material degradation and changes in material composition.It is difficult to identify a priori, the exact optical excitation parameters that result in selective excitation of those phonon modes responsible for the 2H-1T' phase transformations and those responsible for material degradation.

7We demonstrate convolutional neural networks that can distinguish between the different deformations in MoTe2 induced by optical excitation, based on differences in their diffraction pattern Fig. 1. shows the layout of the convolutional neural network used to classify observed diffraction patterns.The CNN consists of 3 CNN blocks, each consisting of a pair of WideResNet layers 44 (each containing a pair of convolutional layers and a dropout layer) and a max-pooling layer, followed by a fully-connected network that classifies the input diffraction pattern into one of seven classes, each corresponding to a different type of structural distortion expected in the UED experiment.We train the CNN model, CNNSyn, using synthetic data for CNN training.Specifically, we simulate diffraction patterns from monolayer MoTe2 crystal with 7 types of structural distortions, as illustrated in Fig. 2 and in the Methods section.The first set of images, Class 0, is generated from pristine defect-free and distortion-free MoTe2 2H crystal with random thermal atomic displacements.Class 1 is generated from 2H MoTe2 structures that contain various concentrations of Mo and Te vacancies.The next set of images, Class 2, is created from 2H MoTe2 structures that contain various degrees of isotropic and anisotropic lattice deformation.The fourth set of images, Class 3, is formed from 2H MoTe2 structures that contain collective displacement due to various phonon modes.The next set of images, Class 4, is created from 1T' MoTe2 structures that contain various concentrations of Mo and Te vacancies.The sixth set of images, Class 5, is generated from 1T' MoTe2 structures that contain various degrees of isotropic and anisotropic lattice deformation.The final set of images (Class 6) is produced from 1T' MoTe2 structures that contain collective deformation due to various phonon modes.

8Due to the lack of high-quality, well-annotated experimental diffraction patterns for supervised learning, synthetic data is widely used as a potential method to generate scalable datasets in electron microscopy settings [45][46][47][48] , because physics-based simulations and data generation and labeling, can generate bias-free and reproducible data across all possible experimental condition in a high-throughput manner at substantially lower cost.Furthermore, UED analysis relies on relatively subtle changes in diffraction patterns to identify material dynamics.Therefore, we provide this inductive bias to the diffraction data by subtracting the diffraction pattern of a pristine, defect-free, un-deformed 2H in its vibrational ground state from the input image.Specifically, this subtraction is used to generate a 2-channel image -positive deviations (i.e. increase in intensity) from the diffraction pattern of the pristine, defect-free, un-deformed 2H in its vibrational ground state are stored in the red channel, while negative deviations (i.e.decrease in intensity) are stored in the blue channel.This unique data modification greatly increases the variance in the input data and improves the sensitivity of the CNNSyn model to small variations in the diffraction pattern.Example training data from different class both before and after subtraction, is shown in Fig. 2. It can be clearly seen that the signatures of each class of lattice distortion is encoded in the distribution of red and blue values over the different regions of the diffraction image.The CNN was trained to minimize the cross-entropy loss for this multi-class classification problem using standard techniques (see Methods section).

9The confusion matrix in Fig. 3 summarizes the performance of CNNSyn in classifying structural distortions in MoTe2.CNNSyn demonstrates high accuracy and reliability by correctly identifying the majority of instances across the dissimilar classes.The lowest class accuracy for the CNN was recorded for Class 2, where 967 out of 996 instances were classified correctly, reflecting an accuracy 97%.The primary misclassifications suggest some feature overlap between Classes 0 and 2. The confusion matrix also includes an additional Class 6, which contains diffraction images that do not belong to any of the other five classes.The purpose of this class was to assess the model's ability to recognize and classify images that exhibit structural distortions that don't belong to any of the predefined categories.These results highlight the CNN's Overall high accuracy -greater than 98%and effectiveness in classifying different structural distortions in MoTe2.Such a high accuracy on synthetic data is known to correspond to approximately 94% accuracy in experimental test data, as seen in other deep learning approaches to crystallography 49 .

Transfer learning for experimental UED data

10ML models for conventional x-ray and electron diffraction benefit from existing large and curated datasets of diffraction patterns from known materials and crystal structures.In contrast, the public availability of ultrafast electron diffraction datasets is very limited, since UED experiments can only be performed at a limited number of facilities with MeV electron beams.Therefore, in order to develop a general scheme for the design and analysis of UED data, we propose a two-stage approach that uses easily-generated synthetic data to develop a CNN-based classification model, which is subsequently updated to use experimental UED data through transfer learning.

11To demonstrate the feasibility of transfer learning, we update the CNNSyn model developed in the previous section using 77 experimental images.Transfer learning is performed by retraining the model against the experimental UED images at a significantly reduced learning rate (0.001 vs 0.01 for training with synthetic data).All model parameters, including weights and biases for the representation layer (WideResNet blocks) and the classification layer (FNN layer) are tuned during the retraining process.Figure 4 shows representative input images from the synthetic and experimental UED dataset and the performance of the CNNSyn model and the transfer-learned CNNExp model on the experimental test dataset.To demonstrate the performance of the retrained model, we plot the predicted classification of a previously reported UED dataset of pumpprobe experiments on MoTe2 monolayers.Manual analysis of the MoTe2 UED patterns demonstrated the excitation of phonon modes (predominantly the M-point and K-point phonon modes 4 ) due to optical excitation.CNNSyn predicts unphysical changes in structure classification over short timescales of 10 ps.The transferlearned CNNExp model performs significantly better on this experimental dataset, preventing the unphysical classification changes on short timescales, as well as predicting the emergence of phonon modes after optical excitation, consistent with experimental observations.This result demonstrates that the two-stage scheme proposed in this section, including transfer learning, is a feasible approach to employ for real-time classification of experimental UED patterns.

Experimental design using generative C-VAE and self-supervised learning

12Experimental design for ultrafast electron diffraction involves the identification of experimental conditions (e.g.beam power, repetition rate etc.) that can result in desirable changes to the sample's diffraction pattern (e.g.phase transformations and excitations of specific vibrational modes).In order to steer experimental conditions towards promising regions of the phase-space, we develop a generative Convolutional Variational Autoencoder (C-VAE) model (Fig. 5) to identify a collapsed low-dimensional representation of different diffraction patterns within the model's latent space, with similar diffraction patterns being clustered together within the lowdimensional latent space.

13In the case of MoTe2, an example of a promising experimental condition is one responsible for transforming 2H MoTe2 to 1T' MoTe2.To identify such promising conditions, we first compute the latent space distribution of diffraction patterns from both 2H MoTe2 and 1T' MoTe2, Figure 6.Additionally, we compute the latent space distribution of a set of images that are pixel-by-pixel interpolations of diffraction patterns from a desirable dynamical process, e.g.2H MoTe2 and 1T' MoTe2.The latent space distribution of these interpolated images represents the expected trajectory of diffraction patterns of MoTe2 samples undergoing phase transformation from the 2H to 1T' crystal structures.On the other hand, unexpected or undesirable structural changes, such as lattice melting or degradation will lead to molecular configurations and diffraction patterns that are significantly different from those of either 2H or 1T' MoTe2.Therefore, these diffraction patterns from defective structures (and the experimental conditions leading to them) will be represented in the latent space as clusters distinct from those of the images representing the 2H, 1T or interpolated diffraction patterns.

14By exploiting the well-structured nature of the latent space in C-VAE, which ensures that similar diffraction patterns are clustered together, such models can identify, in real-time, a promising experimental condition by computing the n-dimensional Euclidean distance between a given diffraction pattern and a line connecting the 2H and 1T' patterns in the VAE's latent space.Distance measures in the latent space of generative models have previously been used as a metric for the similarity of input images or molecular structures in materials chemistry and other engineering applications [50][51][52] .By identifying experimental conditions that result in diffraction patterns close to the 2H and 1T' patterns in the latent space, we can drive experiments towards conditions that induce the structural phase transformation.

15The encoder (decoder) of the C-VAE is a sequence of three convolutional (deconvolutional) layers followed by batchnorm and activation (ReLU) layers.The encoder performs a dimensionality reduction of the input diffraction pattern to a four-dimensional latent space.During C-VAE training, the Adam optimizer was used to update model parameters.The C-VAE model is trained to reduce the total loss, which is a sum of two components -Mean Squared Error, and Kullback-Leiber Divergence.The Mean Squared Error (MSE) loss quantifies the difference between input and reconstructed diffraction pattern image 53 .The Kullback-Leibler divergence loss (KL) which contribute in regularizing and shaping the latent space into a Gaussian probability distribution 54 .

16Figure 7 shows the t-SNE projection of the latent space representation of different diffraction patterns from five MoTe2 crystals, 2H MoTe2, 1T' MoTe2, pixel-by-pixel interpolation of diffraction patterns between 2H and 1T' MoTe2, crystals undergoing a phase transformation, and defective or molten MoTe2.The region enclosed by the distribution of 2H, 1T' , and interpolated MoTe2 diffraction patterns defines the region of expected diffraction patterns due to the phase transformation.Synthetic diffraction patterns of MoTe2 crystals undergoing the 2H-1T' phase transformation lies within the expected region.In contrast, the diffraction patterns corresponding to the defective or molten MoTe2 fall outside the defined region, indicating that experimental conditions that result in such diffraction patterns are not optimal in inducing a 2H-1T' phase transformation.

Discussion

17In conclusion, we have developed two machine learning methods, based on convolutional neural networks to provide real-time analysis of UED images and assist in real-time design of UED experimental parameters.CNNSyn, trained on synthetic data, and CNNExp, trained by transfer learning, are both shown to be effective tool to classify UED images and identify defect formation, lattice distortions and phase transformations in a model material system, MoTe2.Convolutional VAEs (C-VAEs) can perform dimensionality reduction and clustering of different crystal structures.Euclidean distance metrics in the latent space of the C-VAE provide a metric to identify changes in experimental parameters required to induce desired structural changes or phase transformations.

Synthetic data generation for CNNSyn and VAE training

18Simulated electron diffraction patterns are generated by calculating the static structure factor on a uniform 261 × 261 reciprocal grid centered on the origin using the standard formula given below.

19where the intensity I at reciprocal point q depends on positions, R i , and atomic form factors, fi, of Mo and Te atoms in the crystal structure.Diffraction patterns are generated for seven classes of the crystals -2H and 1T' crystal with defects, lattice distortion, and phonons, as well as pristine defect-free 2H crystal as a reference.For UED simulations, defective crystals are constructed by creating vacancies at up to 20% of lattice sites.Distorted lattices are constructed by applying a random strain tensor, with normal and shear components up to 10%.Crystal structures with phonon modes are generated by displacing the atoms from the perfect crystal structure along a random phonon eigenmode generated using the phonopy package 55 .Thermal displacement of atoms is included in the generation of all synthetic data.Each diffraction pattern in training and test data includes up to 50% noise to replicate the noise level of experimental UED data.The training dataset is augmented by 2-fold rotation of each diffraction image 56 .Unlike other ML models for diffraction pattern classification, ML models for UED must emphasize identification and classification of subtle changes in diffraction patterns.Therefore, synthetic data for the CNNSyn model is generated as a 2-channel RGB image, where the red and blue channels capture the positive and negative deviations from the diffraction pattern of a pristine defect-free 2H crystal respectively.In all, a large dataset comprising 70,000 synthetic diffraction images was generated, with raw diffraction images used for VAE training and subtracted, 2-channel diffraction images used for CNNSyn training.

CNN models for classifying UED diffraction patterns

20The CNN contains 3 WideResNet blocks, made up of convolutional and pooling blocks connected by rectified linear unit (ReLU) activation functions.Dropout layers were included in each WideResNet block to prevent overfitting.Network weights are updated using the Adam optimizer.Training was conducted over a maximum 40 epochs, with early stopping based on target validation accuracy of 85% and patience of 2 epochs.Hyperparameter tuning was performed by varying the learning rate and batch size across twelve runs.

VAE models for experiment design

21The VAE architecture comprises an encoder and decoder network, trained to encode input images into a lowerdimensional latent space and subsequently decode them back to their original dimensions.The original dataset images were resized to 256 × 256 pixels and transformed into tensors.The batch sizes were 64 and 20 for training and testing, respectively.3-channel input images pass through four convolutional layers and ReLU activations in the encoder.The resulting feature map is flattened and passed through two fully connected layers to produce the mean and log-variance of the latent space distribution.The decoder takes the latent vectors as input through a fully-connected layer to upscale the latent vectors to match the flattened feature map size, followed by four transposed convolutional layers to reconstruct the image.ReLU activations were utilized in all layers except the final layer, which used a sigmoid activation to produce outputs between 0 and 1., reflecting the intensity of each pixel in the 256 × 256 image.We trained the VAE model using the Adam optimizer with a learning rate of 1.5 × 10 −4 over 100 epochs.

Fig. 1 .

22Fig. 1.CNN architecture: (a) schematic of a single WideResNet layer containing convolution and dropout elements.(b) CNN architecture composed of three blocks, each containing two WideResNet layers and a max-pool layer for representation learning, followed by a single fully-connected layer for classification of noisy diffraction patterns based on structural changes in the material.

Fig. 2 .

23Fig. 2. Training data samples: (a) raw UED image samples of 2H and 1T MoTe2 crystals, (b) UED images after subtraction of reference image of MoTe2 2H crystal.Red (blue) regions indicate positive (negative) deviations from the reference 2H UED image.

Fig. 4 .

24Fig. 4. Transfer learning: (a) time-trajectory of experimental UED images.(b) CNNSyn, trained only on synthetic data, has poor performance in classifying experimental data, but transfer-learned CNNExp model demonstrates no unphysical classifications and indicates the presence of phonons after optical excitation.

Fig. 3 .

25Fig. 3. Confusion matrix illustrating the classification performance of the CNN, highlighting both accuracy and misclassifications.

Fig. 6 .

26Fig. 6.Types of MoTe2 diffraction patterns: (a) Representative crystal structures of 2H, 1T' and defective MoTe2 and MoTe2 undergoing phase transformation.(b) Diffraction patterns of different MoTe2 configurations that cluster in different regions of the C-VAE latent space.

Fig. 5 .

27Fig. 5. Schematic of variational auto-encoder depicting the distribution of 2H and 1T diffraction patterns in the latent space.

Fig. 7 .

28Fig. 7. Experimental design using the VAE latent space: Distribution of 2H, 1T' and interpolated diffraction patterns defines the trajectory of MoTe2 crystals undergoing a phase transformation.Diffraction patterns from defective or molten MoTe2 structures fall outside the region describing the phase transformation.

참고문헌 54건

  1. First lasing and operation of an ångstrom-wavelength free-electron laser Nature Photonics · Nature Portfolio · 2010 10.1038/nphoton.2010.176
  2. Generation and structure of extremely large clusters in pulsed jets The Journal of Chemical Physics · American Institute of Physics · 2014 10.1063/1.4890323
  3. The 3D-architecture of individual free silver nanoparticles captured by X-ray scattering Nature Communications · Nature Portfolio · 2015 10.1038/ncomms7187
  4. A hybrid computational–experimental approach for automated crystal structure solution Nature Materials · Nature Portfolio · 2012 10.1038/nmat3490
  5. Machine learning for ultrafast X-ray diffraction patterns on large-scale GPU clusters The International Journal of High Performance Computing Applications · SAGE Publishing · 2015 10.1177/1094342015572030
  6. Signal-to-noise in femtosecond electron diffraction Ultramicroscopy · Elsevier BV · 2015 10.1016/j.ultramic.2015.07.004
  7. Linac Coherent Light Source: The first five years Reviews of Modern Physics · American Physical Society · 2016 10.1103/revmodphys.88.015007
  8. Imaging nanoscale lattice variations by machine learning of x-ray diffraction microscopy data Nanotechnology · IOP Publishing · 2016 10.1088/0957-4484/27/37/374002
  9. Learning Deep Convolutional Neural Networks for X-Ray Protein Crystallization Image Analysis Proceedings of the AAAI Conference on Artificial Intelligence · Association for the Advancement of Artificial Intelligence · 2016 10.1609/aaai.v30i1.10150
  10. Classification of crystal structure using a convolutional neural network IUCrJ · International Union of Crystallography · 2017 10.1107/s205225251700714x
  11. A deep convolutional neural network to analyze position averaged convergent beam electron diffraction patterns Ultramicroscopy · Elsevier BV · 2018 10.1016/j.ultramic.2018.03.004
  12. Structural phase transition in monolayer MoTe2 driven by electrostatic doping Nature · Nature Portfolio · 2017 10.1038/nature24043
  13. Insightful classification of crystal structures using deep learning Nature Communications · Nature Portfolio · 2018 101038s41467018051696
  14. Real-time coherent diffraction inversion using deep generative networks Scientific Reports · Nature Portfolio · 2018 10.1038/s41598-018-34525-1
  15. Improving Chemical Autoencoder Latent Space and Molecular De Novo Generation Diversity with Heteroencoders Biomolecules · Multidisciplinary Digital Publishing Institute · 2018 10.3390/biom8040131
  16. Considerations for three-dimensional image reconstruction from experimental data in coherent diffractive imaging IUCrJ · International Union of Crystallography · 2018 10.1107/s2052252518010047
  17. Neural network based classification of crystal symmetries from x-ray diffraction patterns Physical review. B./Physical review. B · American Physical Society · 2019 10.1103/physrevb.99.245120
  18. Deep neural networks for classifying complex features in diffraction images Physical review. E · American Physical Society · 2019 10.1103/physreve.99.063309
  19. Fast and interpretable classification of small X-ray diffraction datasets using data augmentation and deep neural networks npj Computational Materials · Nature Portfolio · 2019 10.1038/s41524-019-0196-x
  20. Optical Control of Non-Equilibrium Phonon Dynamics Nano Letters · American Chemical Society · 2019 10.1021/acs.nanolett.9b01179
  21. Crystal symmetry determination in electron diffraction using machine learning Science · American Association for the Advancement of Science · 2020 10.1126/science.aay3062
  22. Rapid Identification of X-ray Diffraction Patterns Based on Very Limited Data by Interpretable Convolutional Neural Networks Journal of Chemical Information and Modeling · American Chemical Society · 2020 10.1021/acs.jcim.0c00020
  23. Deep learning analysis on microscopic imaging in materials science Materials Today Nano · Elsevier BV · 2020 10.1016/j.mtnano.2020.100087
  24. AI-enabled high-resolution scanning coherent diffraction imaging Applied Physics Letters · American Institute of Physics · 2020 10.1063/5.0013065
  25. Adaptive 3D convolutional neural network-based reconstruction method for 3D coherent diffraction imaging Journal of Applied Physics · American Institute of Physics · 2020 10.1063/5.0014725
  26. Crystal symmetry classification from powder X-ray diffraction patterns using a convolutional neural network Materials Today Communications · Elsevier BV · 2020 10.1016/j.mtcomm.2020.101662
  27. Balancing Reconstruction Error and Kullback-Leibler Divergence in Variational Autoencoders IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.3034828
  28. Adaptive 3D convolutional neural network-based reconstruction method for 3D coherent diffraction imaging Journal of Applied Physics · American Institute of Physics · 2020 10.1063/5.0014725
  29. Symmetry prediction and knowledge discovery from X-ray diffraction patterns using an interpretable machine learning approach Scientific Reports · Nature Portfolio · 2020 10.1038/s41598-020-77474-4
  30. Identification of crystal symmetry from noisy diffraction patterns by a shape analysis and deep learning npj Computational Materials · Nature Portfolio · 2020 10.1038/s41524-020-00466-5
  31. A deep learning approach using synthetic images for segmenting and estimating 3D orientation of nanoparticles in EM images Computer Methods and Programs in Biomedicine · Elsevier BV · 2021 10.1016/j.cmpb.2021.105958
  32. Probing molecular dynamics with ultrafast electron diffraction Chinese Journal of Chemical Physics · Chinese Physical Society · 2021 10.1063/1674-0068/cjcp2012208
  33. Accurate prediction of mega-electron-volt electron beam properties from UED using machine learning Scientific Reports · Nature Portfolio · 2021 10.1038/s41598-021-93341-2
  34. Classification of crystal structures using electron diffraction patterns with a deep convolutional neural network RSC Advances · Royal Society of Chemistry · 2021 10.1039/d1ra07156d
  35. Deep Generative Models in Engineering Design: A Review Journal of Mechanical Design · American Society of Mechanical Engineers · 2022 10.1115/1.4053859
  36. Toward fully automated UED operation using two-stage machine learning model Scientific Reports · Nature Portfolio · 2022 10.1038/s41598-022-08260-7
  37. Phase-controlled epitaxial growth of MoTe2: Approaching high-quality 2D materials for electronic devices with low contact resistance Journal of Applied Physics · American Institute of Physics · 2022 10.1063/5.0073650
  38. Ultrafast Electron Diffraction: Visualizing Dynamic States of Matter Insecta mundi · Center for Systematic Entomology · 2022
  39. AtomAI framework for deep learning analysis of image and spectroscopy data in electron and scanning probe microscopy Nature Machine Intelligence · Nature Portfolio · 2022 10.1038/s42256-022-00555-8
  40. Efficient virtual high-content screening using a distance-aware transformer model Journal of Cheminformatics · BioMed Central · 2023 10.1186/s13321-023-00686-z
  41. Versatile domain mapping of scanning electron nanobeam diffraction datasets utilising variational autoencoders npj Computational Materials · Nature Portfolio · 2023 10.1038/s41524-022-00960-y
  42. Adaptively driven X-ray diffraction guided by machine learning for autonomous phase identification npj Computational Materials · Nature Portfolio · 2023 10.1038/s41524-023-00984-y
  43. Gate and Temperature Driven Phase Transitions in Few-Layer MoTe<sub>2</sub> ACS Nano · American Chemical Society · 2023 10.1021/acsnano.2c12610
  44. Implementation strategies in phonopy and phono3py Journal of Physics Condensed Matter · IOP Publishing · 2023 10.1088/1361-648x/acd831
  45. A deep learning approach for morphological feature extraction based on variational auto-encoder: an application to mandible shape npj Systems Biology and Applications · Nature Portfolio · 2023 10.1038/s41540-023-00293-6
  46. Intrinsic 1$${T}^{{\prime} }$$ phase induced in atomically thin 2H-MoTe2 by a single terahertz pulse Nature Communications · Nature Portfolio · 2023 10.1038/s41467-023-41291-w
  47. Automated crystal system identification from electron diffraction patterns using multiview opinion fusion machine learning Proceedings of the National Academy of Sciences · National Academy of Sciences · 2023 10.1073/pnas.2309240120
  48. Strain-Induced 2H to 1T′ Phase Transition in Suspended MoTe<sub>2</sub> Using Electric Double Layer Gating ACS Nano · American Chemical Society · 2023 10.1021/acsnano.3c04701
  49. Automated classification of big X-ray diffraction data using deep learning models npj Computational Materials · Nature Portfolio · 2023 10.1038/s41524-023-01164-8
  50. Multi-objective Bayesian active learning for MeV-ultrafast electron diffraction Nature Communications · Nature Portfolio · 2024 10.1038/s41467-024-48923-9
  51. Multi-objective Bayesian active learning for MeV-ultrafast electron diffraction Nature Communications · Nature Portfolio · 2024 10.1038/s41467-024-48923-9
  52. A robust synthetic data generation framework for machine learning in high-resolution transmission electron microscopy (HRTEM) npj Computational Materials · Nature Portfolio · 2024 10.1038/s41524-024-01336-0
  53. Engineering the electronic properties of MoTe <sub>2</sub> via defect control Science and Technology of Advanced Materials · Taylor & Francis · 2024 10.1080/14686996.2024.2388502
  54. Synthesis and electronic structure of atomically thin 2H-MoTe<sub>2</sub> Nanoscale · Royal Society of Chemistry · 2025 10.1039/d4nr05191b