A machine-learning-enabled approach for bridging multiscale simulations of CNTs/PDMS composites

: Benefitting from the interlaced networking structure of carbon nanotubes (CNTs), the composites of CNTs/poly-dimethylsiloxane (PDMS) have found extensive applications in wearable electronics. While hierarchical multiscale simulation frameworks exist to optimize the structure parameters, their wide applications were hindered by the high computational cost. In this study, a machine learning model based on the artificial neural networks (ANN) embedded graph attention network, termed as AGAT, was proposed. The datasets collected from the micro-scale and the macro-scale simulations are utilized to train the model. The ANN layer within the model framework is trained to pass the information from micro-scale to macro-scale, while the whole model is aimed to predict the electro-mechanical behavior of the CNTs/PDMS composites. By comparing the AGAT model with the original multiscale simulation results, the data-driven strategy is shown to be promising with high accuracy, demonstrating the potential of the machine-learning-enabled approach for the structure optimization of CNT-based composites.


INTRODUCTION
In contrast to rigid devices, flexible electronic devices exhibit excellent adaptability on unconventional interfaces, particularly the surface of human skin, and thus can be widely used in various scenarios, such as human motion recognition, heath monitoring, and human-machine interface [1,2].Among them, the remarkable electrical and mechanical properties of carbon nanotubes (CNTs), together with the outstanding stretchability and flexibility of polydimethylsiloxane (PDMS), make the CNTs/PDMS composite a kind of suitable strain sensor for numerous sensing applications [3][4][5].
The conductivity of the CNTs/PDMS composite benefits from the interlaced networking structure of CNTs, while the response of the CNTs/PDMS sensor primarily arises from changes in its electrically conductive network under material deformation caused by external forces [6].Hence, the microstructure, including the geometrical morphology of CNTs, the volume ratio, and the distribution of CNTs within the matrix, significantly influence the properties of the CNTs/PDMS composite.Therefore, the structureproperty relations in CNTs/PDMS composites have been widely investigated [7].Among them, the numerical simulation methods have gained popularity as they offer an efficient alternative to time-consuming experimental research [8].Arora and Pathak [9] proposed an efficient computational methodology to predict effective orthotropic elastic properties of CNT-polymer composites at diverse constituent conditions.In this work, the Mori-Tanaka homogenization scheme has been implemented with a finite element method (FEM) approach to predict the material properties of nanocomposites.Zhang et al. [10,11] studied the mechanical properties of 3D braided composites using FEM analysis.Li et al. [12] designed simulation models through changing the content, aspect ratio and orientation degree of CNTs to investigate the electrical conductivity of CNTs/PE composites with different meso-structures.
It is worth mentioning that the property of a single CNT which offers the essential parameters in the FEM model can be obtained by using the micro-scale calculation.Numerous studies have explored how the mechanical and electrical properties of CNTs are influenced by their geometric morphology.Ebbesen et al. [13] believed that the electronic properties of CNTs were strongly modulated by their small structural variations, and measured the electrical properties of different nanotubes with diverse lengths and radii.Bao et al. [14] simulated the Young's moduli of CNTs based on molecular dynamics (MD) simulation, while Wagner et al. [15] investigated the piezoresistive effect of CNTs within density functional theory (DFT).Wei et al. [16] presented a method for measuring the natural frequencies (f) as a function of the length (L) of individual CNTs, and the axial Young's moduli and radial shear moduli of the CNTs were obtained simultaneously through fitting the experimental f-L data using the Timoshenko beam model.Peralta-Inga et al. [17] proposed a density functional tight-binding self-consistent charge approach to study the elastic properties of nine CNTs of different helicities and diameters.
The above reviews clearly indicate that for improving the performance of CNTs/PDMS composites, the insights from the micro-scale to macro-scale are necessary.In recent decades, the concept of multiscale modelling has emerged to describe procedures that seek to simulate continuum-scale behavior using information gleaned from computational models of finer scales in the system, rather than resorting to empirical constitutive models [18,19].Multiscale approaches are particularly attractive in the CNTs-based composite structure due to atomic scale dependencies of a single CNT [4].Multiscale methods have been mainly categorized into two classes: hierarchical and concurrent multiscale methods [20].In hierarchical approaches, the molecular and macro models are simulated sequentially.To be specific, in the CNTs/polymer system, the molecular model can be utilized to calculate effective material properties, which are then passed to the FEM model to simulate the material properties on a macro-scale.Subramanian et al. [21] proposed an automictically informed stochastic multiscale model to predict the behavior of CNT-enhanced nanocomposites.In this work, the MD simulations were performed to study sub-nanoscale interactions of the CNT with the polymeric phase of the nanocomposite.Jiang et al. [22] developed a predictive constitutive model using a hierarchical multiscale approach based on molecular dynamics and the generalized interpolation material point method.The MD simulations were used to construct an elastodamage model, which was subsequently incorporated into material point methods for large-scale simulations.
However, the employment of molecular models within the FEM presents a significant computational burden, and designing the microstructure required to achieve the desired macroscopic set of properties is often intractable, due to the multiple optimization objectives, the high-dimensional and multiscale optimization space, the presence of nonlinear, stochastic, and multi-physics interactions, and the lack of governing equations for the macroscale behavior [23].Fortunately, machine learning (ML) is an emerging field that provides high-dimensional, data-driven modeling that can map nonlinear correlations and therefore can be tailored to material discovery and optimization.ML uses a range of statistical and probabilistic approaches, allowing machine intelligence to learn from experience and to identify the hidden patterns (input-output correlations) from large and often noisy datasets, which are now seen as successful approaches for the design and discovery of new materials for a wide variety of applications [24].Recently, ML has emerged as a powerful technique in the field of composite material [25][26][27].Yuan et al. [28] proposed an axial elastic modulus degradation prediction method of [0 m /90 n ] s cross-ply laminates using an ML model.The dataset of the ML model was established based on the published experimental data and a small amount of FEM results.Liu et al. [29] proposed a hybrid ML method to predict the macroscopic thermal conductivity of CNTsreinforced polymeric nanocomposites.Huang et al. [30] proposed a predictive model assisted by ML techniques, including artificial neural network (ANN) and support vector machine (SVM), to map the relationship between the mechanical properties of CNTs-reinforced cement composites and multiple influential factors.Le [31] developed a quick and robust computational tool based on the ML Gaussian process regression model to predict the tensile strength of CNT/polymer nanocomposites.
However, the aforementioned work mainly focused on utilizing ML-guided design approaches for predicting properties of composite materials on the macro-scale.Recently, several studies have been published using ML in multiscale modeling and simulation [20].Xiao et al. [20,32] proposed an ML-enhanced hierarchical multiscale approach based on the dataset generated from both the MD simulations and the continuum model to study the mechanical behaviors of materials at the macroscale.Matouš et al. [33] outlooked in a review that the ML methods that seek meaningful low-dimensional structures hidden in highdimensional multiscale data (both computational and experimental) will be important for a variety of tasks.Meanwhile, Fish et al. [18] also claimed that data-driven and ML tools have great potential to accelerate materials discovery by combining with physics-based multiscale methods.They gave an example to support their view that a recent study utilized Gaussian process metamodels informed from systematically coarsegrained MD simulations to discover optimal mechanical properties of polymer-grafted nanoparticle assemblies.Once trained and validated, such surrogate models can rapidly generate new data points by interpolating simulated outcomes, while sensitivity analyses easily reveal parameters that matter the most [34].
Based on the above literature, this study developed an ML-enabled model that offers a multiscale approach for predicting the sensing behavior of composite sensing materials, as illustrated in Figure 1.Firstly, a multiscale electro-mechanical framework was proposed for modeling the electrical resistance change of the CNTs/PDMS composite under material deformation.This framework includes both the micro-and macroscales for both mechanical and electrical domains involved.Within this framework, the DFT calculations were initially conducted to determine the Young's modulus of an individual CNT.The result was then passed to the FEM simulation for predicting the macro-scale sensing behaviors on the meso-structures of CNTs/ PDMS composites.Subsequently, an ML model, named AGAT, was established based on the architecture of ANNs embedded graph attention networks (GAT).The embedded ANN layer, utilized for predicting the Young's modulus from the length and radius of the CNT, acted as a bridge between the DFT calculation and the FEM simulation, referred to as the DFT-FEM (DF) module.The dataset collected from multiscale simulations and the literature was utilized to train AGAT.The well-trained ML model was finally used to predict the material sensing property, with the meso-structure of the CNT/PDMS composite serving as the input parameters.

The micro-scale calculation
The purpose of micro-scale calculation is to generate data samples that calculate the Young's modulus based on the length and radius of a single CNT.The DFT calculations were performed using the VASP code.The Perdew-Burke-Ernzerhof functional within generalized gradient approximation was used to process the exchange-correlation, while the projector augmented-wave pseudopotential was applied with a kinetic energy cut-off of 500 eV, which was utilized to describe the expansion of the electronic eigenfunctions.The vacuum thickness was set to be 25 Å to minimize interlayer interactions.The Brillouin-zone integration was sampled by a Γ-centered 5 × 5 × 1 Monkhorst-Pack k-point.All atomic positions were fully relaxed until the energy and force reached a tolerance of 1 × 10 −5 eV and 0.03 eV/Å, respectively.The dispersion-corrected DFT-D method was employed to consider the long-range interaction.

The macro-scale simulation
In the macro-scale simulation, the FEM was employed to generate the dataset by simulating the mechanicalelectric response of CNTs/PDMS composites at diverse meso-structures.The simulation was started by constructing the geometric structure of the CNTs/PDMS composite based on four changeable parameters, namely the CNT radius, the CNT length, the volume ratio, and the CNT quantity.Establishing a comprehensive macro-scale geometry model for the composite is challenging, as it leads to a significant computational burden due to the complex micro-structure.Hence, to enhance computational efficiency, the representative volume elements (RVEs) with dimensions of 5 μm × 5 μm × 5 μm size were utilized to establish the geometry model for property evaluation.The RVE generation algorithm was developed using Python 3.6 program with the ABAQUS software.The shape of the CNT filler was treated as the cylinder and the PDMS was regarded as the matrix in the RVE model.The proposed generation algorithm, which operates within the boundaries of the RVE matrix, was used to build the fillers based on given input parameters, namely, the CNT radius, the CNT length, the volume ratio, and the CNT quantity.Owing to the van der Waals forces, CNTs within the matrix do not physically overlap or interlace.Thus, an avoidance algorithm was devised to mimic this real-world structural characteristic.The flowchart of RVE generation algorithm is depicted in Figure 2. Take the t-th CNT as an example.Firstly, the seed point of the CNT is created randomly within the matrix boundary, denoted as A t 0 = (x 0 , y 0 , z 0 ); then the axis of the CNT extends from the starting point A t 0 to the given length; each incremental growth step is recorded, resulting in the axis of the CNT being expressed as the set Path t = {A t 0, A t 1, …, A n t }, where n is in accordance with the length of the CNT.Whenever a new CNT is created, the avoidance algorithm is triggered.The overlap between two CNTs can be calculated by Eq. ( 1) where Path q refers to the axis set of the q-th CNT.The t-th CNT and q-th CNT are considered overlapping when the value Overlap exceeds double of the given radius.Upon iterating through all existing CNTs, any overlapping with the newly created t-th CNT would lead to its removal.The iterative creation of CNTs continues until the quantity achieves the set value and the RVE model is finally established.
To explore the impact of the generated mesostructured configurations on the sensing property of CNTs/ PDMS composites, a finite element analysis was undertaken.This analysis aimed to calculate the electrical resistance under different strain levels of 0%, 4%, 8%, 12%, 16%, and 20%, with a range of diverse RVE models employed.Taking the advantages of COMSOL in multi-physics calculation, the pre-established RVE model was imported into the COMSOL Multiphysics software for the mechanical-electrical stimulation.Notably, a tuning effect would be triggered when the distance of two individual CNTs is less than 1 nm, as depicted in Figure 3A.The simulation model was operated under the structural mechanical and AC/DC coupled module interface.Within the structural mechanics module, two matrix interfaces along the z-axis, namely the upper interface and the bottom interface, were chosen and assigned fixed constraint condition and prescribed displacement condition, respectively.The strain orientation of material was prescribed along the zaxis direction.As illustrated in Figure 3B, in the AC/DC modulus, the upper surface was designated as the voltage entry point which was set at 1 V, while the bottom surface was selected as the voltage outlet, configured with the ground boundary condition.In terms of meshing, the substantial number of CNT fillers results in a sharp increase in the degree of freedom for the RVE model's grid, subsequently reducing the model's computational efficiency.Hence, to enhance the computational efficiency, coarser grids were se-  1.
The resistance R of the CNTs/PDMS composite is calculated according to Eqs. ( 2) and (3).

I Jn s n s i n Si
where n is the mesh number of the voltage applied interface, which is the upper face in this work, J is the current density, S i is the area of the mesh-I, U refers to the voltage value, and I denotes the current value.The electrical potential distributions of the CNTs/PDMS composite under different strains are shown in Figure 3C.

Machine learning
The architecture of AGAT is displayed in Figure 4.The overall architecture comprises the DF module and the GAT module.The embedded DF module is formed using an ANN to predict the Young's modulus of an individual CNT and expand the 4-node inputs to 5-node inputs.Subsequently, the expanded input undergoes five layers of graph attention.In each attention layer, an 8-head attention mechanism is employed to update the information associated with each vertex by aggregating information from adjacent vertices with specific weights.The resulting outputs then pass through another graph attention layer with a single-head attention to  As shown in Figure 4A, the embedded DF module, representing the microscale CNT property, is built with the ANN.In AGAT, the CNTs/PDMS composite sample can be represented by an input H = (h 0 , h 1 ,…, h n−1 ) (as shown in Figure 4B).Two vertexes out of H, assuming (h 2 , h 3 ), were initially sent to the DF module for predicting the Young's modulus of a single CNT, denoted by h n .The DF module is composed of an input layer, five hidden layers, and an output layer, each of which is denoted by Z i .The input layer consists of 2 nodes with the normalized values, the hidden layers both consist of 8, 32, 64, 64, and 32 nodes, respectively, and the output layer has 1 node with the predicted value.The process of transmitting information among nodes is presented in Eq. ( 4).
where Z i denotes the node value of the i-th layer, w i and b i represent the weights matrix and bias corresponding to each layer, respectively.f i refers to the activation function, which utilizes the ReLu function in this work.Since this module is aimed to cope with the regression issue, no activation function is employed on the output layer.
The output h n was subsequently integrated with the original input H to yield the updated sequence H = (h 0 , h 1 , … , h n ).The core framework employed in AGAT is the GAT, which leverage the attention mechanism to compute weights between each vertex and its neighbors during the message passing phase.As illustrated in Figure 4C, within this phase, the information associated with each vertex is aggregated with its adjacent vertices and connected edges in an attention strategy, consequently resulting in updated information.This iterative process continues until a definitive representation for each vertex is achieved.In the message passing approach, the update of the vertex h i t is presented in Eq. ( 5).

+1
where U is the update function, h i t+1 is the updated information of the vertex, h j refers to the neighboring vertices and e ij represents the edges connecting the neighbors to the vertex h i .
In the framework of AGAT, the update function was derived based on the multi-head attention mechanism.Firstly, the importance of a neighboring vertex h j was learnt and the attention score was calculated according to Eq. ( 6) a wh wh a wh wh a wh wh = softmax ( ( , where w is the trainable weight, a denotes the self-attention calculation, h i represents the node information in the graph, h j refers to a neighboring node information of h i , and N i represents the set of neighbors of node i. The softmax function used here is for normalizing the attention scores.The AGAT employs the multi-head attention mechanism, and thus the aggregated information of node i, denoted as h i , is derived in Eq. (7).
where refers to the activation function, which is LeakyReLU in this work, and k denotes the number of dependent attention mechanism.Five hidden layers of GAT convolutions were utilized in the AGAT, each consisting of an 8-head attention mechanism.After all vertices have been aggregated, the updated sequence was sent into the final layer of AGAT.In this layer, a singlehead attention mechanism was employed to calculate predictive values.

Data collection, metrics, and cross-validation
To verify the effectiveness of the proposed model, in this section, the AGAT model was trained on the collected dataset.As shown in Figure 5A, the ML model provides an inexpensive relationship between input parameter, denoted as ] and representing the structure (specifically the CNT radius, the CNT length, the volume ratio, and the CNT quantity) of the p-th sample, and the corresponding resistance response as a 6-dimensinal vector R p = [r p 1 , r p 2 , r p 3 , r p 4 , r p 5 , r p 6 ], consisting of electrical resistance values 0%, 4%, 8%, 12%, 16%, and 20% strains, respectively.In the data collection process, 63 samples from the open Refs.[14,15,17,35,36] and generated DFT simulations (see Table S1) were gathered to train the DF module in the AGAT model which serves for predicting the Young's modulus of the single CNT from its length and radius.Afterwards, the Young's modulus was passed to COMSOL software before the FEM simulation.To this end, 230 numerically generated resistance responses were obtained as the outputs to train the remaining parameters of the AGAT model (see Table S2).
To address the accuracy of the proposed AGAT model, various metrics including the coefficient of determination (R 2 ), the mean absolute error (MAE), and the mean squared error (MSE) were adopted to evaluate the performance of the trained model, which is calculated according to Eqs. ( 8)- (10).
where N represents the number of samples, r i indicates the target output, r i denotes the predicted output, and r refers to the average value of the target outputs.
To achieve robust outcomes, the above criteria were derived through the 5-fold cross-validation.In each iteration of the 5-fold cross-validation, the dataset was spilt into five distinct subsets, with four of them used for training while the remaining subset served as the testing data.The average value obtained from each iteration was subsequently regarded as the final accuracy of the model.

Hyper-parameter tunning
The hyper-parameters play a crucial role in determining the accuracy, robustness, and overall capabilities of the ML model.Hence, in the pursuit of optimizing the performance of the proposed model, extensive experiments were conducted to examine the impact of the hyper-parameters on the model's efficacy (see Tables S3-S5).The mean MAE, MSE, and R 2 values are presented in Tables 2 and 3, where these values are intricately tied to the varying quantities of hidden features embedded within each layer, the count of attention mechanism heads, and the training batch size employed, respectively.It should be noted that the MAE and MSE values were calculated on the normalized data.
As shown in Table 2, the R 2 value exhibits a declining trend with the increase in the count of hidden features.At the same time, the MSE value reaches its lowest point with 0.0060 when the model has precisely 16 hidden features.This observation can be attributed to the constrained set of six input attributes and a sample size of 230 instances.When dealing with a smaller dataset, networks with fewer hidden features tend to perform better on the testing data.With this optimal hidden feature number, the focus then shifts to the number of attention mechanism heads used.The findings from Table 2 reveal that the MSE value is minimized when employing an 8-head attention mechanism, indicating its optimal performance.Correspondingly, with the same configuration, a peak R 2 value of 0.7852 is observed.Table 3 illustrates that the MAE, MSE, and R 2 value exhibit minimal fluctuations as the training batch size reaches 16 or exceeds it.Notably, these metrics demonstrate superior performance when the batch size is set to 16.Specifically, the MSE value remains constant at 0.0060 for batch sizes of 16, 32, 64, and 128.Additionally, the R 2 value shows little variance, with the largest value of 0.7883 occurring at a batch size of 16.

Model performance
A two-stage training method was utilized in this study, wherein the DF module was initially trained independently based on the collected DFT data for predicting the Young's modulus of the single CNT.Subsequently, the remaining parameters of the AGAT model were trained on 230 numerically generated data points.Consequently, the predictive accuracies of the DF module and the overall AGAT were both evaluated.The DF module exhibited an impressive R 2 value of 0.93, indicating its ability to accurately predict the Young's modulus.The predictive accuracy of the overall AGAT model concerning the electrical resistance of the CNTs/PDMS composite under various strain levels (0%, 4%, 8%, 12%, 16%, and 20%) is presented in ].Notably, The R 2 values corresponding to these six outputs all surpass 0.79, thereby implying an acceptable level of prediction accuracy.In addition, the R 2 value exhibits small fluctuation among the six sequential data points.This consistent behavior reinforces the notion of the model's efficacy in reliably predicting electrical resistances under varying strain conditions.The results demonstrate that the AGAT model can effectively predict the electrical resistances under different strains.

Ablation study
To gain deeper insights into the architecture of the AGAT model, we conducted an ablation study encompassing two distinct experiments.The initial experiment aimed to assess the effect of the reduction in network layers.Table 4 presents a quantitative comparison across varying quantities of hidden layers (from the 2nd row to 6th row).Table 4 reveals the significant impact of the network layers on the model performance.Notably, when network layers are diminished, a marked decrement in performance is observed.This decrement is especially pronounced in the model comprising only a singular layer, which is considered inefficient due to its negative R 2 value.Conversely, as the count of network layers increases, a conspicuous increase in R 2 values is observed, accompanied by simultaneous reductions in MAE and MSE metrics.However, this trend slightly continues from four layers to five layers.The observations derived from this experiment suggest that the number of network layers is a critical factor contributing to the AGAT model's performance.An insufficient number of layers yield unsatisfactory performance, while the integration of additional layers enhances the model's predictive capabilities.However, it is worth noting that further improvement tapers off after surpassing a certain layer threshold.
To examine the significance and enhancements offered by the DF module designed to bridge micro-scale calculations to macro-scale simulations, the second ablation study was conducted.This study involved the removal of the DF module from the model architecture.The detailed performance of the model without DF module is displayed in Table 4 (the 1st row).Compared with the metrics in the 6th row, it is evident that the exclusion of the DF module leads to increases in both the MAE and MSE values, rising from 0.0543 to 0.0584 and from 0.0060 to 0.0067, respectively.Simultaneously, the R 2 value experiences a reduction from 0.7883 to 0.7548.These outcomes underscore that the utilization of the AGAT multiscale approach outperforms the original GAT model, which is solely trained based on the single FEM data sources.This highlights the added value of the DF module in enhancing the model's predictive capabilities across multiple scales.

DISCUSSION
This study presents a novel approach, designated as the AGAT model, for predicting the electrical response of the CNTs/PDMS composite using a GAT-based ML model.Within a specified meso-structure, the trained AGAT model can rapidly and directly predict the sensing behavior of the CNTs/PDMS composite without conducting the physics-based multi-scale simulations.Initially, the multi-scale framework starts with the DFT calculation and the FEM simulation to generate datasets.Based on the collected datasets, the AGAT model is trained with meso-structural characteristics of CNTs/PDMS composites as inputs, namely the CNT radius, the CNT length, the volume ratio, and the CNT quantity.The resulting electrical resistance sequence recorded at strain levels of 0%, 4%, 8%, 12%, 16%, and 20%, constitutes the output of the model.To assess the model's efficacy, three metrics including the R 2 , MAE, and MSE are employed.By performing the 5-fold cross validation, the R 2 values of the six output targets all exceed 0.79, underscoring a good correspondence between the predicted values and ground truth.Furthermore, insights from the ablation study indicate that the optimal network architecture consists of five hidden layers, with the integration of the DF module playing a role in connecting multi-scale simulations.
CNTs/PDMS composites show great potential in electronic devices owing to the CNTs' interlaced networking structure which is changeable in response to external forces.By employing the proposed AGAT model, the high-efficiency exploration of the optimal structure influencing the sensing property could be achieved.While in this study we have focused on the electrical resistance-strain response of CNTs/PDMS composites, the satisfactory predictions made by AGAT also make it promising for application on other kinds of materials, especially nanocomposites.The nanocomposites consist of multiple phases where at least one, two or three dimensions are in the nanometer range.The reinforcing material is usually in a dispersed phase, while the matrix material is in a continuous phase.Hence, the material properties of each phase, together with their structural assembly would both significantly influence the final property.In this case, multiscale simulations play a crucial role by utilizing microscale calculations to determine nano-scale material properties and macroscale simulations to optimize the material structure.The proposed ML-enabled multi-scale strategy provides a platform for accelerating multiscale simulations from the micro-scale domain to the macro-scale domain.In this multi-scale framework, the embedding of a well-designed module that acts as a vital bridge between the micro-scale and the larger scale facilitates the training of the ML model through the hierarchical multiscale simulation, thus endowing it with the ability to efficiently predict material properties.However, a challenge resides in the scale disparity that characterizes multiscale simulations.For example, in the investigation of CNTs/PDMS composites, current literature on CNT property calculations using DFT reveal nanotube lengths on the order of several tens of nanometers.In contrast, in literature on finite element analyses at meso-or macro-scales, CNTs within CNTs/PDMS composites can extend to lengths of several thousands of nanometers.To overcome this limitation, the present study conducted various DFT simulations focusing on CNTs with lengths surpassing 1000 nm.However, the extended CNT structures entail a considerable computational burden due to their sizable unit cells (over 10,000 atoms of a single CNT with 15 nm in radius and 1000 nm in length), making it extremely expensive to accumulate a sufficient number of data samples.Another challenge lies in the potential errors introduced by the simulation-based calculations.In this study, the ML model was established mainly using simulation data, which could lead to non-negligible mismatches when compared with experimental measurements.However, acquiring sufficient experimental data poses a grand challenge which can be hardly realized.Hence, efforts should be made to enhance the accuracy of the ML model by leveraging these large, comparatively "inexpensive" simulation datasets alongside the limited, expensive experimental datasets, using transfer learning, pre-trained models, or other relevant techniques.The third challenge emerges in the development of optimal sampling algorithm, demanding an efficient strategy to ensure the incorporation of data samples of pronounced significance.The collection of datasets for training requires the combination of simulations across micro-scale to macro-scale, where the hierarchical approach is often preferred over simultaneous execution, leading to a numerous time demand.Consequently, strategies for data sampling need further exploration to ascertain the minimal requisite number of multiscale simulations while preserving the uncompromised performance of the ML model.

Figure 1
Figure1The diagram of the ML-enabled multiscale approach for predicting the sensing behavior of CNTs/PDMS composites.

Figure 2
Figure 2 The flowchart of the RVE generation algorithm.

Figure 3
Figure 3 The FEM simulation of the CNTs/PDMS composite.(A) Tunnel effect; (B) boundary conditions; (C) distributions of electrical potential under different strains.

Figure 4
Figure 4 The architecture of AGAT.(A) The DF module constructed using ANN networks for predicting the Young's modulus of an individual CNT; (B) integration of the value generated by the DF module with the original input; (C) configuration of the GAT with initial five layers of GAT convolutions, each featuring an 8-head attention mechanism, and a final layer with a single-head attention mechanism.

Figure 5 ( 1 , x p 2 , x p 3 , x p 4 ] 1 ,
Figure 5 (A) The structure parameter vector X p = [x p 1 , x p 2 , x p 3 , x p 4 ] is fed to the AGAT model to predict the corresponding electrical resistance vector R p = [r p 1 , r p 2 , r p 3 , r p 4 , r p 5 , r p 6 ]; (B) the predictive performance of the AGAT model.

Figure 5B . 1 ,
The figure visually represents the model's performance in predicting each sequential data point within the series R p = [r p

Table 1
Material parameters of the CNTs/PDMS composite

Table 2
Influence of the hidden feature number and heads of attention mechanism on the model performance

Table 3
Influence of the training batch size on the model performance

Table 4
Ablation study on the hidden layer variations and the DF module in the AGAT model