Introduction

Engineered assemblages of composite laminates provide a flexible foundation for customizing mechanical properties according to specific requirements.[[1,2]] The design optimization of these laminates encompasses a multidimensional space involving considerations such as the number of layers, material selection for each layer, layer thickness, and stacking sequence.[[3,4]] While factors like the number of layers, material types, and thicknesses may be influenced by external constraints, the stacking sequence remains a critical parameter open to optimization. This study focuses on the systematic optimization of stacking sequences in composite laminates, aiming to minimize stresses within the structure under specified loading conditions. Additionally, by addressing the intricacies of stacking sequences, the research aims to pave the way for enhanced structural performance and durability in composite laminate.

Prior research has extensively addressed the optimization of composite laminates, often employing traditional optimization techniques like genetic algorithms and simulated annealing. These methodologies have been successful in exploring the design space, but their effectiveness can be limited when dealing with the intricate non-linearities inherent in composite materials.[[5,6]] Recent studies have begun incorporating computational intelligence, using metaheuristic algorithms and machine learning approaches to address these challenges. However, the specific application of generative deep-learning models for optimizing stacking sequences represents an innovative and promising frontier.[[7,8]] This paper builds upon this foundation, leveraging deep-learning capabilities to unlock new possibilities in optimizing stacking sequences for composite laminates and, consequently, advancing the field of material design for enhanced structural performance.[[9,10]] By embracing the cutting-edge realm of generative deep learning, the research aims to transcend the limitations of traditional optimization methods, offering a novel and effective approach to optimize stacking sequences for superior structural outcomes in composite laminates.

The presented example focuses on a laminate with a symmetric layup, using Carbon-Epoxy as the lamina material with orthotropic properties. The optimization analysis targets the determination of the optimal fiber orientation in each layer under specified loading conditions, with the primary objective of minimizing the maximum stress within the laminate. The optimization process employs the Bound Optimization BY Quadratic Approximations (BOBYQA) method, emphasizing the practicality and efficiency of the generative deep-learning approach in finding the optimum stacking sequence for enhanced structural performance.[[8,10]]

Materials and methods

In this study, the ground truth data are generated through Finite Element Method (FEM) simulations, as depicted in Fig. 1. Figure 1(a) illustrates the model geometry of a composite laminate with a side length of 1 m and a thickness of 0.02 m. The simulation input encompasses boundary conditions, material properties, the number of layers, and the orientation of each layer. The simulation output is the optimized orientation of each layer, determined using the BOBYQA method. For illustration, Fig. 1(b), (c), and (d) presents von Mises stress, the initial orientation of fibers in each layer, and the optimized orientation in each layer, respectively. All boundary conditions are translated into a numerical vector using a preprocessor, achieved by representing them with digit numbers. The number of input nodes is fixed at 9. The input to the first node indicates the number of layers in the composite laminates (e.g., 6 for a laminar with 6 layers). The second to fifth nodes represent inputs of boundary conditions for each edge. Boundary conditions on the edge can be uniform distribution loads or bending moments, distinguished by adding an additional zero before the digits (e.g., 26 means \(26\,N/m\) uniform load while 260 means \(26N\cdot m\) bending moment). The sixth to ninth nodes denote the loads applied to the vertices. In this preliminary study, the value range of point loads or distribution loads is from − 50 to 50. The number of output nodes is adjusted based on the number of input layers which is a task easily accomplished in Python 3 by incorporating a loop to change the number of output nodes. Each ply of composite panel is assumed to be made of carbon fibers in an epoxy resin. The material properties for the given composite material are as follows: Young’s moduli (E1, E2, E3) are {134, 9.2, 9.2} GPa, shear moduli (G12, G23, G13) are {4.8, 4.8, 4.8} GPa, and Poisson's ratios (υ12, υ23, υ13) are {0.28, 0.28, 0.28}.

Figure 1
figure 1

FEM simulation setup. (a) Model geometry of a composite laminate. (b) von Mises stress, (c) Initial orientation of fiber in each layer. (d) Optimized orientation in each lay.

The flow chart of this study is detailed in Fig. 2(a). The adjustable MLP networks are demonstrated in Fig. 2(b). For the MLP, we employed a single input layer with 9 nodes, representing the number of layers and boundary conditions. The output of the MLP consists of orientation angle of layer in degrees. We adopted a straightforward architectural design, utilizing five layers with nine nodes in each layer. This simple architecture has proven effective in numerous studies and performed well during initial testing. In the training, we carefully tuned key parameters to ensure optimal model performance. The choice of an appropriate learning rate, often a critical factor in training deep-learning models, was set to 0.02, balancing the need for fast convergence with stability. A batch size of 500 was used, determining the number of data samples processed in each iteration, which played a significant role in optimizing training efficiency. The models were trained for 22 epochs, providing sufficient iterations to allow the model to learn the underlying patterns. Weight decay, set at 0.001, was employed to prevent overfitting. The rectified linear unit (ReLU) activation function was used in hidden layers, and the customized Mean-Squared Error (MSE) loss function was defined as follows:

$$MSE = \frac{1}{n}\sum\limits_{{i = 1}}^{n} {\left( {\frac{{\theta _{i} - \widehat{{\theta _{i} }}}}{{\theta _{i} }}} \right)^{2} },$$

where \(n\) represents the number of layers, \({\theta }_{i}\) indicates the predicted angle for each layer, and \(\widehat{{\theta }_{i}}\) represent the optimized angle for each layer from FEM simulation.

Figure 2
figure 2

(a) Flowchart of this study. (b) Adjustable Deep-learning Network.

Results and discussion

Figure 3 depicts the average mean-squared errors (MSEs) for both training and validation graphs. The training loss exhibits a decreasing trend over epochs, suggesting the model's effective learning from the training data. Starting at approximately 0.5, it steadily declines and stabilizes around 0.05 after 12 training epochs. Similarly, the average validation loss initially decreases, reflecting the model's successful generalization to unseen data. It is common for the validation loss to be slightly higher than the training loss, as observed in the plot. Error bars in the graph represent the range of MSE curves for the 20 trials.

Figure 3
figure 3

MSE convergency curves of MLP models.

In Fig. 4, we randomly selected three sets of data from the test pool and performed a comparative analysis between the actual best design within each dataset and the optimized designs predicted by our trained models. The models demonstrate excellence in predicting orientation angles for each layer, with minimal differences between the ground truth data and predictions. The overall difference between the predicted and the angles form FEM is around 3%.

Figure 4
figure 4

Test of trained deep-learning model.

Conclusion

This paper presents an innovative approach to optimize composite laminate structures by integrating finite element modeling with a customized multi-layer neural network. The neural network is trained on ground truth data obtained from rigorous finite element simulations, enabling it to discern intricate correlations between layer orientations, boundary conditions, and resulting optimized designs. The study's outcomes offer significant promise for advancing materials design and structural engineering, highlighting the transformative potential of combining computational intelligence with traditional modeling techniques.