1 Introduction

Finite element modeling is a powerful and efficient method for analyzing part dynamics [1,2,3]. The continuous development of technology and demand for lightweight design has elevated the role of multi-objective optimization methods [4,5,6] and modal analysis methods [7] in practical applications. Both types of methods can optimize the test process, reduce the processing time, and reduce the test costs [8,9,10,11,12,13]. Meanwhile, computer numerical controlled (CNC) machine tools are gaining prominence as they meet the production requirements of geometric accuracy and surface processing quality of machine parts. The capability of a machine tool is assessed by its machining accuracy, and optimizing the structure and specific dimensions can enhance the basic performance of a machine tool.

Cheng et al. [14] proposed a sensitivity analysis for optimizing the basic parameters of machine tools and demonstrated it on a three-axis machine tool. Ghasemian et al. [15] designed the variables of an optimized organic Rankine cycle using a nondominated sorting genetic algorithm (NSGA-II). Guo et al. [16] performed a sensitivity analysis of geometric errors on a five-axis machine tool and accuracy optimum values are obtained by multi-objective optimization. Khodaygan [17] proposed a novel interactive framework for a computer-aided multi-objective optimization of tolerance design, which allocates the optimal process tolerances of components. This framework simultaneously optimizes the process capability function and overall manufacturing cost. Lin [18] also optimized the tolerance design using a multi-objective optimization method. A network combined with a genetic algorithm can simultaneously optimize the parameters of a high-speed machine tool, which can then be refined in a sensitivity analysis. High-precision machining can meet the tight tolerances imposed on complex mechanical parts. The machine tool is a complex system that must simultaneously move along three prismatic axes [19]. Therefore, its key parts must be properly designed and optimized. The neural network model structure that best accelerates the design process and improves the optimization and rationality of the design can be found by objective optimization methods such as structural and system optimization. In some grinding machines, the structure optimization must be supplemented via thermodynamic analysis to improve the thermal performance [20]. Tian et al. [21] proposed a multiobjective optimization of process parameters based on the NSGA-II algorithm. The multi-objective optimization of products is increasingly being emphasized for green manufacturing. Tarek et al. [22] proposed a gray rational analysis based on the Taguchi method, which finds the best neural-network model architecture for multiobjective optimization. Ma et al. [23] optimized the parameters of a high-speed spindle system using a genetic algorithm and particle swarm optimization. Xie et al. [24] obtained the Pareto frontier solutions by employing an improved NSGA-II algorithm. In a gray relational analysis, they also optimized the variable blank holder force loading trajectory.

Wang et al. [25] proposed a novel integrated framework for the design and optimization of a machine tool structure. By combining knowledge-based design and multi-stage optimization with integrated computer-aided design and computer-aided engineering, their framework significantly improves the quality and efficiency of the machine-tool design. Xu and Cao [26] proposed an approach to improve the energy efficiency of the production process through scheduling the maintenance actions of the machine tool, taking into account productivity, product quality, and energy consumption.

Shen et al. [27] proposed a new structural dynamic design optimization method for the holistic machine tool. The inner stiffener layout of the machine structure was designed using the Adaptive Growth Method, and the optimization of the machine tool using dynamic sensitivity analysis was studied. Liu et al. [28] studied the lightweight design of the gantry machine tool using twice optimization design method, which integrates zero-order optimization, parameter rounding, and structural re-optimization. The experiments showed that the mass of the whole gantry frame was reduced by 9.24% before and after the optimization. Feng et al. [29] introduced the sustainability performance of machine tools and design optimization of components such as lightweight using topology and bionic methods, structure design with modular design. Baptista et al. [30] presented a new Lean Design-for-X (LDfX) approach embracing the principles of Lean Product Development and Modular Design, for systematic applicability by design engineers and applied it in a real design study of a machine tool. Yuksel et al. [31] demonstrated a hybrid approach that combines the computational contact problem framework and an obtained stable contact stiffness function. In this research, the existing and the proposed methods for contact are investigated utilizing the solid isotropic material with a penalization model (SIMP) algorithm for topology optimization.

The present paper optimizes the structure design of the crossbeam in a CNC milling-machine tool. The framework combines finite element analysis with multi-objective optimization and optimizes the structure and dimensions of the crossbeam using sensitivity theory and a neural-network algorithm.

In this paper, the optimization of the crossbeam in two periods was accomplished. The first time about optimization aims to change the internal structure from X-type to O-type. The consistency of deformation is dependent on the regular shape of the rib. The second time about optimization aims to optimize the dimensions of the crucial ribs using sensitivity theory, adaptive response surface methodology, the BP neural network, and NSGA-II algorithm. After the optimization in two times, the crossbeam is improved from the internal structure to crucial dimensions.

2 Structure Design and Improvement of the Machine Crossbeam

The designed machine is a small CNC milling-machine tool with dimensions of 550 mm × 520 mm × 520 mm. The maximum spindle speed is 24,000 rpm, and the effective machining distances in the [length], [breadth] and [height] directions are 200, 160, and 100 mm, respectively.

The material is needed to be set before making a FEM analysis. Table 1 indicates the material parameters for the machine. The crossbeam and column are fabricated from gray cast iron (HT250) with a density of 7340 kg/m3, a Young’s modulus of 1.3 × 1011 Pa, a Poisson ratio of 0.25, the slide guide is fabricated from GCr15, the base of the machine is marble, and other parts used S45C.

Table 1 Material set for FEM

While analyzing the whole machine or part using FEM, the characteristic details have not profound influence on the analysis results but increase the analyzing difficulty and solution time. However, it tends to make the finite element mesh more dense and extend the analyzing time, even it tends to cause errors. Hence, for some tiny or unimportant characteristics which have less influence on part analysis, the simplified model is necessary. For the machine with a gantry structure, the force applied on the cross-beam not only includes cutting force come from the cutting tool, but also includes the weight of the X-axis and Z axis feed system and spindle. The cross beam plays a vital role in machining precision. In this investigation, the machine and parts were modeled and simplified first. Then we set the material parameters and properties. The elements were meshed further. The finite element grid of the beam is quadrilateral, and the number of cells is 147,230. The constraints was applied on the two ends of the cross-beam, with the resultant force of cutting force, weight of X, Z axis applied on the crossbeam. The statics and modal analysis were accomplished. Figure 1 shows the procedure of finite element analysis.

Fig. 1
figure 1

The procedure of finite element analysis

An X-type structure of its internal elements. The machine and its crossbeam structure are displayed in Fig. 2.

Fig. 2
figure 2

Schematic of the machine and its crossbeam structure. a Machine model with a gantry structure. b Structure of crossbeam

Figure 3 indicates that the biggest deformation occurred in the middle point of the crossbeam, with the value of 0.18574 μm. Besides, the value in the X direction is 0.0318 μm; the value in the Y direction is 0.15101 μm, and the value in the Z direction is 0.0318 μm, 0.108 μm.

Fig. 3
figure 3

Statics analysis of the crossbeam. a The total deformation. b The deformation in the X direction. c The deformation in the Y direction. d The deformation in the Z direction

As the key part of the whole machine, the crossbeam bears the cutting force and weight of the spindle and feed systems, and plays a vital role in the machining accuracy. It has an impact on the machining precision directly. Therefore, the modal analysis is necessary to investigate whether it creates resonance with the spindle during machining. The modal coordinate will be replaced by a physical coordinate formed by a differential equation of vibration through the modal analysis. After decoupling equations set, the independent equation described by modal coordinate and parameters should be established, so that the system modal parameters can be solved. Hence, the optimization process was preceded by modal analysis. Figure 4 presents the results of the modal analysis.

Fig. 4
figure 4

Modal frequencies of the crossbeam. a First-order mode shape. b Second-order mode shape. c Third-order mode shape. d Fourth-order mode shape. e Fifth-order mode shape. f Sixth-order mode shape

The first-order modal frequency of the crossbeam was 1604 Hz (Fig. 4a). The higher-order modes with higher frequencies (especially the third-, fifth-, and sixth-order modes) have complex mode shapes or large deformations (Fig. 4b–f). Therefore, the crossbeam structure should be modified further and the spindle speed should be properly selected to avoid resonance, which is probably generated between the spindle motor and cross beam.

Based on the modal analysis results, the internal structure of the crossbeam was optimized as shown in Fig. 4. The internal structure changed from X-type to O-type. The structural differences between these two designs are compared in Fig. 5a.

Fig. 5
figure 5

Section of the new crossbeam. The internal elements of the original structure (top left) are changed to O-type (top right). a Front sections of the two structures. b Top–down section of the new crossbeam

According to experimental studies, in the internal elements of the beam, the O-type is better than the X-type in terms of static and dynamic characteristics. Changing the internal element structure of the crossbeam from X-shaped to O-shaped reduced the total deformation, equivalent stress, and modal frequency of the crossbeam. Based on analysis, it can be concluded that the O-type structure changed the connection type of the ribs, improved the stress concentration condition in the center point. The front section of the optimized structure has two slots at each side, providing higher stiffness than the single slot in the original schedule. Table 2 shows the FEM analysis results of both crossbeam designs.

Table 2 Performance comparison of the two crossbeam designs

The FEA tool with topology optimization was used to validate the structure designing solution further. Based on the FEM model of the crossbeam, the structure topology optimization was conducted using the variable density method in FEM software. As an efficient method, density is assumed variable. After the discrete of the original structure, taking the unit density as a design variable, the task of structure topology optimization aims to find the inner material distribution of the structure, changing the unit density using algorithm to get the smallest deformation energy.

The mathematical model is shown as follows:

$$ \left\{\begin{array}{l} Find\;P=\left({p}_1,{p}_2,\ldots, {p}_n\right)\\ {Min}\;U=f(P)\\ {}s.t.\kern0.5em V\le {V}_0-{V}_1\\ {}0\le {P}_i\le 1\kern0.5em \left(i=1,2,\ldots, n\right)\end{array}\right. $$

where U is the structure deformation energy, Pi is unit density, V is structure volume, V0 is structure volume before optimization, V1 is structure volume of material removal.

Based on the variable density method and topology optimization, the optimum material distribution of the crossbeam is obtained using FEM software, as shown in Fig. 6, the material is gray cast iron (HT250) with a density of 7340 kg/m3, a Young’s modulus of 1.3 × 1011 Pa, a Poisson ratio of 0.25.

Fig. 6
figure 6

Material removal of the crossbeam unit based on topology analysis. a Iteration progress (30%). b Second iteration (80%)

The load was applied on the top surface of the crossbeam. Displacement boundary condition was applied on the two sides in vertical direction. The topology and iteration results show that the structure works well and meets the machine structure lightweight demanding.

3 Optimization of the Specific Dimensions

The multi-objective optimized method based on adaptive response surface methodology and NSGA-II algorithm was used for the lightweight design about crossbeam. The deformation, mass and frequency were regarded as optimized function due to the complexity of the crossbeam structure. According to the sensitivity theory, the wall thickness that has different influence on structure sensitivity was balanced, and the important wall thickness dimensions which need to be optimized were filtered. Using adaptive response surface methodology and NSGA-II algorithm, the optimized dimensions were concluded.

3.1 Sensitivity Theory

The structure optimization of the crossbeam performed in this study is based on sensitivity theory. Static deformation sensitivity means that the entire static deformation responds to changes in the design variables:

$$ {S}_{bx}\left({x}_1,{x}_2\ldots, {x}_n\right)=\frac{\partial b\left({x}_1,{x}_2\ldots, {x}_n\right)}{\partial {x}_i}, $$
(1)
$$ {S}_{mx}\left({x}_1,{x}_2\ldots, {x}_n\right)=\frac{\partial m\left({x}_1,{x}_2\ldots, {x}_n\right)}{\partial {x}_i}, $$
(2)
$$ {\mathrm{S}}_{\mathrm{bm}}=\frac{\partial\mathrm{b}\left({\mathrm{x}}_1,{\mathrm{x}}_2\ldots, {\mathrm{x}}_{\mathrm{n}}\right)}{\partial\mathrm{m}\left({\mathrm{x}}_1,{\mathrm{x}}_2\ldots, {\mathrm{x}}_{\mathrm{n}}\right)}=\frac{\frac{\partial\mathrm{b}}{\partial {\mathrm{x}}_{\mathrm{i}}}}{\frac{\partial\mathrm{m}}{\partial {\mathrm{x}}_{\mathrm{i}}}}=\frac{\ {\mathrm{S}}_{\mathrm{bx}}}{\ {\mathrm{S}}_{\mathrm{mx}}}, $$
(3)

where (x1, x2…, xn) are the values of the selected dimensions, b is the total deformation of the structure (μm), m is the mass of the structure (kg), Sbx and Smx are the sensitivities of the total deformation and mass to changes in the dimensions, respectively, and Sbm is the sensitivity of the total deformation to mass changes.

The dynamic sensitivity refers to the frequency sensitivity of the part to changes of the selected dimension variables. It is calculated as follows:

$$ \mathrm{M}\ddot{\mathrm{X}}\left(\mathrm{t}\right)+\mathrm{KX}\left(\mathrm{t}\right)=0, $$
(4)

where M and K are matrices describing the system mass and stiffness, respectively, and \( \ddot{x}\kern0.5em \mathrm{and}\kern0.5em x \) are the n-dimensional acceleration and displacement vectors of the mass nodes, respectively. The displacement vector is given by the following equation:

$$ x=A\;\sin \left(\omega t\right), $$
(5)

where A is the amplitude (mm) and ω is the vibration frequency of the vector (Hz).

Substituting \( \ddot{x}\ and\ x \) into Eq. (4), we get the characteristic formula:

$$ \left(\mathrm{K}-{\omega}_j^2M\right){A}_j=0, $$
(6)

where ωj and Aj are the jth-order modal frequency and amplitude of the structure, respectively.

Taking the partial derivative of Eq. (6) with respect to the dimension design variable xi, multiplying on the left by \( {A}_j^T \), and substituting ω = 2πf, the sensitivity of the modal frequency of the structure to a given dimension variable is obtained as follows:

$$ {\mathrm{S}}_{fx}=\frac{\partial f\left({x}_1,{x}_2\ldots, {x}_n\right)}{\partial {x}_i}=\frac{1}{8{\pi}^2f}{A}_j^T{A}_j^T\frac{\partial K}{\partial {x}_i}{A}_j-\frac{f}{2}{\omega}_j^2{A}_j^T{A}_j\frac{\partial M}{\partial {x}_i}, $$
(7)

From Eqs. (2) to (7), the sensitivity of the modal frequency to mass is obtained as follows:

$$ {S}_{fm}=\frac{\partial f\left({x}_1,{x}_2\ldots, {x}_n\right)}{\partial m\left({x}_1,{x}_2\ldots, {x}_n\right)}=\frac{\frac{\partial f}{\partial {x}_i}}{\frac{\partial m}{\partial {x}_i}}=\frac{\ {S}_{fx}}{\ {S}_{mx}}, $$
(8)

Figure 7 is the flow chart of the sensitivity analysis of crossbeam.

Fig. 7
figure 7

Flow chart of sensitivity analysis

3.2 Sample Design

The optimized crossbeam is a box with O-shaped structure units. The outer wall is 8- and 10-mm thick, and the inner wall is 10 mm thick. The outer wall and rib thicknesses of the O-shaped element were selected as the experimental elements for optimization. The aim is to optimize the values of the 21 dimension variables listed in Table 3.

Table 3 Variables in the structure dimension design

Taking the original value of each variable as the center point, sets of five variables were generated by implementing two increments and two decrements with a step size of 1 mm. For example, the variable set for H1–H4 was generated as {8, 9, 10, 11, 12}. The multi-objective optimized function was designed as follows:

$$ \left\{\begin{array}{l}{x}_i\\ {}{S}_f\ge 1610.5\;\mathrm{Hz}\\ {}{S}_b\le 0.1847\;\upmu \mathrm{m}\\ {}{m}_{min}\end{array}\right., $$
(9)

where xi is the wall thickness (designed variable), Sf ≥ 1610.5 Hz constrains the first-order frequency to at least 1610.5 Hz, and Sb ≤ 0.1847 μm constrains the entire deformation to at most 0.1847 μm. mmin is the objective function that minimizes the mass of the crossbeam.

4 Results and Discussion

4.1 Sensitivity Calculation and Analysis Results

4.1.1 Crossbeam Deformation and First-Order Modal Sensitivity Analysis

The relation between the variable values and crossbeam deformation of the samples prepared in Sect. 3.2 were analyzed through FEM analysis. The results showed almost linear relationships between the crossbeam deformation and the values of each dimension variable and between the first-order modal frequency and the values of each dimension variable (see Tables 4, 5, respectively).

Table 4 Deformation of crossbeam for different values of each dimension
Table 5 First-order modal frequency of the crossbeam for different values of each dimension

The sensitivities of the deformation to the 21-dimension variables is plotted in Fig. 8. As shown in Fig. 8, the deformation responded most sensitively to the dimension variable H11. Recall that the Z axis and spindle are connected with the crossbeam at the H11 side (Fig. 2). Therefore, the high sensitivity of deformation to the H11 dimension is expected. The modal frequency to the 21-dimension variables is plotted in Fig. 9.

Fig. 8
figure 8

Sensitivity of deformation to each dimension variable

Fig. 9
figure 9

Sensitivity of first-order modal frequency to each dimension variable

4.1.2 Mass Sensitivity Analysis of Crossbeam

The mass of the crossbeam increased when the value of any selected dimension increased. The crossbeam mass was linearly related to the dimension variables; its sensitivity to each dimension is plotted in Fig. 10.

Fig. 10
figure 10

Sensitivity of crossbeam mass to each dimension variable

Because H11 dominated in all three sensitivity profiles, we must determine whether it has a significant impact on the constraints. As shown in Fig. 11. The deformation exhibits linear change while changing the dimension from 6 to 10 mm. It shows that the total deformation decreased with the increase of the dimension. Moreover, the frequency and mass increased while the dimension increased. Therefore, it can be concluded that the influence of H11 on the total deformation, first-order modal frequency and mass were consistent with the actual situation.

Fig. 11
figure 11

The influence trend of dimension H11 to deformation, frequency, and mass. a The influence trend of H11 to total deformation. b The influence trend of H11 to first-order modal frequency. c The influence trend of H11 to mass

4.2 Optimization of the Specific Dimension Variables

Based on sensitivity theory and adaptive response surface methodology, the relation between dimension and mass, the sensitivities of the crossbeam deformation and modal frequency to the mass increment were analyzed and calculated indirectly; the results are given in Table 6.

Table 6 Sensitivities of crossbeam deformation and first-order frequency to mass increment

As shown in Table 6, the dimension variables H5, H6, H7, H14, H16, H18, and H20 significantly influenced the sensitivity of deformation to the mass increment, whereas H1, H2, H10, H11, H15, H19, and H21 exerted a moderate effect, and H3, H4, H8, H9, H10, H12, H13, and H17 exerted a smaller influence. Meanwhile, the variables H4, H5, H6, H7, H8, H10, H14, H16, H18, and H20 significantly influenced the sensitivity of frequency to the mass increment, followed by H1, H2, H3, H9, H15, and H19. The variables H11, H12, H13, H17, and H21 exerted the smallest influence. The more influential variables were selected for further optimization. The optimization variables H1, H2, H4, H5, H6, H7, H8, H10, H11, H14, H15, H16, H18, H19, and H20, (15 dimensions in total) were renamed as shown in Table 7.

Table 7 Dimension variables selected for the multiobjective optimization

In the multi-objective optimization, D1–D12 and E1–E3 were chosen as the independent variables, and the total deformation, first-order modal frequency and mass were assigned as the constraints and optimization targets. Multi-objective optimization was performed using a back-propagation (BP) neural network and the NSGA-II algorithm. The samples were chosen using the space-filling design method. Fifteen-dimension variables were constructed using this method, and 287 groups of samples were chosen. Among these, 277 groups of data were randomly selected as the training data, and the remaining ten groups were reserved for testing the network.

A three-layer neural network with 15 neural network nodes in the input layer and three neural network nodes in the output layer was constructed. Because there were 19 nodes in the hidden layer (by calculation), the structure of the BP neural network was 15–19–3. The data were normalized, and the learning rate, training error, and the number of training times were set to 0.02, 0.01, and 1000, respectively. Figure 12 shows the relative errors obtained in 10 sets of test data. The maximum prediction errors in the mass, total deformation, and first-order modal frequency were 0.1493%, 1.0586%, and 0.3667%, respectively, which meet the requirements of multi-objective optimization.

Fig. 12
figure 12

Error analysis of samples about mass, deformation, and frequency

The multi-objective optimization of the beam was performed using the NSGA-II algorithm. The relevant parameters in the algorithm were set as follows: number of initial populations = 200, maximum number of evolution iterations = 100, mutation probability = 0.02, crossover probability = 0.98. The Pareto frontier solution is shown in Fig. 13.

Fig. 13
figure 13

The values of deformation, frequency, and mass after multi-objective optimization

The three coordinate axes in Fig. 13 correspond to the total deformation, first-order modal frequency, and mass. The optimum values of the dimension variables are listed in Table 8.

Table 8 Optimum value of each variable

To verify the optimization results, the FEM analysis was repeated using the optimized dimension variables. The parameters of the original and optimized structures are compared in Table 9. The optimization lowered the mass of the crossbeam by 7.45%, reduced the deformation by 3.08%, and increased the modal frequency by 0.42%.

Table 9 Parameter comparison of the original and optimized crossbeam structures

5 Conclusions

Using FEM analysis, this paper performed a modal frequency analysis of a CNC machine crossbeam with an X-type unit structure. The internal structure of the crossbeam was improved by changing the X-type units to O-type units. The characteristic dimensions of the crossbeam were divided into different groups, and their influences on the crossbeam mass, frequency, and deformation were calculated and analyzed using sensitivity theory. From the sensitivity analysis results, 15 dimensions were defined as independent variables using multi-objective optimization. The deformation, modal frequency, and crossbeam mass were input as the constraints and optimization goals into the multi-objective optimization process, comprised of a BP neural network and NSGA-II algorithm. The crossbeam mass decreased by 7.45%. The total deformation of the crossbeam decreased by 3.08%, and the modal frequency of the crossbeam increased by 0.42%. The crossbeam with the optimized structure and dimensions was more lightweight, less deformable, and vibrated at a higher modal frequency than the original design.