Analysis of Cutting Forces and Geometric Surface Structures in the Milling of NiTi Alloy

This paper presents a study of the total cutting force used and selected parameters of the geometric structure of the surface (e.g., Sa, Sz) during the end milling process of NiTi alloy. The input parameters included are cutting speed (vc), feed per tooth (fz), and radial depth of cut (ae). A Box–Behnken experimental design was employed to conduct the research. The obtained experimental results were utilized within the framework of a response surface methodology (RSM) to develop mathematical and statistical models capable of predicting cutting force components and selected 3D surface parameters. These models provide valuable insights into the relationships between the cutting parameters and the output variables, facilitating the optimization of the NiTi alloy milling process. The findings of this study contribute to a better understanding of the behavior of NiTi alloy during the milling process and offer information for process optimization. By employing a Box–Behnken experimental design, it was possible to investigate the effects of different parameter combinations on the components of total cutting force and selected 3D surface parameters according to ISO 25178, thus aiding in the identification of optimal milling conditions to achieve desired outcomes in the machining of NiTi alloy.


Introduction
Materials with shape memory and superelasticity are considered new materials.These are original materials with significant potential for applications in modern mechanical structures, materials engineering, or medicine [1][2][3][4][5].Referred to as multifunctional and intelligent, they are commonly produced as alloys based on nickel and titanium (NiTi), possessing the unique ability to regain their original shape after deformation.The distinct characteristics of the NiTi alloy, coupled with additional advantages such as biocompatibility, high plasticity, a favorable strength-to-weight ratio, corrosion resistance even in aggressive environments, and favorable parameters in terms of mechanical strength, fatigue strength, and specific weight, have fueled a growing interest in materials derived from this alloy in the field of modern mechanical systems utilized in technology and medicine [2][3][4][5][6].
Titanium-nickel alloys, particularly NiTi alloys, are the most extensively researched and practically used shape memory materials, as a result of their exceptionally favorable properties.NiTi alloys exhibit the best shape memory and superelasticity properties and have the most favorable mechanical properties.NiTi alloys are corrosion-resistant materials and due to that property they can be used in aggressive environments, such as seawater, as well as in specific medical applications [1,2].NiTi-SMAs (shape memory alloys) are also characterized by excellent fatigue properties, high ductility, good forgeability, and high resistance to erosion, abrasion, vibration, etc. [2,5,6].
As the demand for products made of NiTi alloys increases, there is also a need to develop an intelligent machining strategy that will optimize costs and ensure maximum efficiency while maintaining a high quality to the machined surface [7][8][9].The desired characteristics of these materials heavily depends on the methods used for their production and processing.Therefore, the constant development of new manufacturing technologies and the continuous improvement of existing procedures and processing methods are essential.Due to its high plasticity, temperature sensitivity, and significant surface hardening during machining, the NiTi alloy poses challenges when using conventional manufacturing techniques.The primary issues in machining NiTi alloys are associated with the high temperatures generated during cutting and the rapid wear of the cutting edge, resulting in low cutting process efficiency.Despite the optimization of machining parameters, tool wear still remains a problem in machining of these alloys [5,6].Continuous chips formed during machining complicate material processing control, and, during that process, burrs are generated, contributing to the low quality of the machined surface [7,[10][11][12].The material's high strength also induces additional mechanical loads at the tool-workpiece interface, leading to strong adhesion on the tool flank face [13][14][15][16].The increased adhesion of the workpiece material to the cutting tool with prolonged machining periods is observed as an unfavorable phenomenon [17,18].
The milling process is widely employed in most manufacturing process chains for machining materials such as metals, titanium alloys, nickel alloys, ceramics, and composites.It allows greater dimensional accuracy, a finer surface finish, complex shapes, and a wide range of manufactured component sizes.Therefore, milling processes play a crucial role in producing complex components made of shape memory alloys, such as the NiTi alloy [18][19][20][21].However, milling this alloy is challenging due to its material properties, which include high hardness, low thermal conductivity, and poor machinability [14,15,18].
In comparison to other engineering materials, the machinability of NiTi is undeniably a greater challenge.Challenges related to the machining of these alloys hinder the achieving of higher cutting parameters, thus increasing machining efficiency while maintaining the required quality of the surface layer [19][20][21][22][23].The unique properties of NiTi alloys, such as shape memory and superelasticity, introduce complexities into the machining process that set them apart from conventional engineering materials.It is worth noting that, compared to titanium alloy, nickel alloy, maraging steel, etc., machining a NiTi alloy may present even greater challenges due to the unique properties of the alloy [5,13,24].These distinctive characteristics necessitate specialized machining approaches and tooling strategies to address the inherent challenges and optimize the machining of NiTi alloys [13,25].However, to uphold the importance of NiTi alloys as construction materials, efforts should be directed towards reducing their processing costs (due to their challenging machinability).Historically, the industry's priority has been obtaining high-quality parameters for products made of the NiTi alloy, with production cost as a secondary concern.It can be anticipated that, in the future, due to the need to reduce and optimize production costs, research efforts will be focused on shaping NiTi alloy elements using methods that ensure maximum efficiency while maintaining the quality of the machined surface [19,21,[23][24][25][26].
The growing use of shape memory alloys like the NiTi alloy, in various industries, and the demand for processing such materials result in the continuous development of machining technology.This includes the design of tools, the use of new tool materials, and the rational selection of cutting parameters, as well as research into phenomena occurring during machining and their alignment with real conditions [9,27,28].
The fragmentary experimental results presented in the scientific literature are insufficient for developing guidelines for the processing of NiTi alloys.The geometric structure of the surface formed during milling depends not only on the kinematic and geometric parameters of the process but also on the tool displacements caused by the impact of the forces and geometric errors of the elements of the M-H-W-T (Machining Operation-Holder-Workpiece-Tool) system.Most studies analyzing the surface formed during milling do not consider the combined impact of the aforementioned factors [8,29,30].
Therefore, a detailed analysis of the cutting force and the geometric structure of the surface during the milling process of NiTi alloy can provide important insights for planning this process.This is particularly crucial when producing shape memory materials that are challenging to process.By analyzing the interplay between cutting parameters and surface characteristics, this analysis aims to unravel new insights that can pave the way for enhanced machining strategies.The integration of advanced experimental designs, such as the Box-Behnken method, allows to delve into unexplored dimensions, offering a comprehensive understanding of the milling dynamics specific to NiTi alloys.The conducted research will contribute to understanding the milling process of NiTi alloys and provide valuable insights for optimizing milling parameters.The results could help manufacturers improve machining efficiency and achieve a high-quality surface finish after milling a NiTi alloy, ultimately facilitating the widespread use of this advanced material in various engineering applications.
This endeavor aspires to shed light on the untapped potential within the intricate realm of NiTi alloy machining, shaping the trajectory of future advancements in materials processing.

Research on Stand Components and Tested Materials
The cutting process was examined on a test stand at the Chair of Production Engineering (Cracow, Poland) on a CNC milling machine tool Haas VF1 equipped with a digital control unit.The experimental setup is illustrated in Figure 1 (milled-surface NiTi alloy and cutting tool).
Therefore, a detailed analysis of the cutting force and the geometric structure o surface during the milling process of NiTi alloy can provide important insights for p ning this process.This is particularly crucial when producing shape memory mate that are challenging to process.By analyzing the interplay between cutting param and surface characteristics, this analysis aims to unravel new insights that can pav way for enhanced machining strategies.The integration of advanced experimenta signs, such as the Box-Behnken method, allows to delve into unexplored dimension fering a comprehensive understanding of the milling dynamics specific to NiTi alloys conducted research will contribute to understanding the milling process of NiTi a and provide valuable insights for optimizing milling parameters.The results could manufacturers improve machining efficiency and achieve a high-quality surface finis ter milling a NiTi alloy, ultimately facilitating the widespread use of this advanced m rial in various engineering applications.
This endeavor aspires to shed light on the untapped potential within the intr realm of NiTi alloy machining, shaping the trajectory of future advancements in mate processing.

Research on Stand Components and Tested Materials
The cutting process was examined on a test stand at the Chair of Production E neering (Cracow, Poland) on a CNC milling machine tool Haas VF1 equipped with a ital control unit.The experimental setup is illustrated in Figure 1 (milled-surface NiT loy and cutting tool).The 3D topography measurements of the treated surface were made using the Ta Hobson measuring system.The TalyMap program was used to visualize surface test m urements.In this study, measurements of the surface topography of the selected par ters were made under the following conditions, which are shown in Table 1.In addi a Gaussian filter was applied.The measurements were made in triplicate for statis purposes.The post-processing of the raw data included noise removal, shape profil tering, topography imaging with 3D maps, the determination of selected surface topo phy parameters, and their statistical evaluation.The parameters of the surface topogr were determined following ISO 25178 [7,9].The 3D topography measurements of the treated surface were made using the Taylor Hobson measuring system.The TalyMap program was used to visualize surface test measurements.In this study, measurements of the surface topography of the selected parameters were made under the following conditions, which are shown in Table 1.In addition, a Gaussian filter was applied.The measurements were made in triplicate for statistical purposes.The post-processing of the raw data included noise removal, shape profile filtering, topography imaging with 3D maps, the determination of selected surface topography parameters, and their statistical evaluation.The parameters of the surface topography were determined following ISO 25178 [7,9].

Stylus Tip Radius, r tip
The Interval of Roughness Measurements 3D Topography Area A workpiece is usually employed in the aerospace industry to manufacture components.The material used in this work was NiTi shape memory alloy, which was slightly off-stoichiometry, with 57.88 Ni (wt.%), obtained from Baoji Hanz Metal Material Co. Ltd. (Baoji, China).The austenite finish temperature was A f = 60 • C. Table 2 shows the chemical composition (wt.[%] and at.[%]) of the NiTi alloy.The physical, thermal, and mechanical properties of the β-NiTi of the material are shown in Table 3, respectively.Dry down milling was used in the experiments.The cutting tool was a 6 mm diameter coated carbide end mill (grade: ACW52) with four teeth (Sumitomo SSEH 4060W-R10), presented in Figure 2.

3D
Topography Area A workpiece is usually employed in the aerospace industry to manufacture components.The material used in this work was NiTi shape memory alloy, which was slightly off-stoichiometry, with 57.88 Ni (wt.%), obtained from Baoji Hanz Metal Material Co. Ltd. (Baoji, China).The austenite finish temperature was Af = 60 °C.Table 2 shows the chemical composition (wt.[%] and at.[%]) of the NiTi alloy.The physical, thermal, and mechanical properties of the β-NiTi of the material are shown in Table 3, respectively.The research plan to determine the impact of three independent factors, namely, feed per tooth ( f z [mm/tooth]), radial depth of cut (a e [mm]), and cutting speed (v c [m/min]), on the values of the selected factors Sa and Sz (i.e., 3D areal surface texture parameters), of the surface roughness and cutting force components, was developed according to Response Surface Design [9,26].The Box-Behnken experimental design approach was adopted during this research.
The Box-Behnken experimental design employed in this study serves as a pivotal methodological framework for systematically exploring the effects of various factors on the milling process of NiTi alloy.Developed by George E.P. Box and Donald W. Behnken, this design is a response surface methodology that efficiently balances the number of experimental runs required with the precision of the obtained results.The Box-Behnken design facilitates the creation of a set of experimental combinations, or "runs", that allows us to model and analyze the behavior of the milling process within this multi-dimensional parameter space.The key advantage of the Box-Behnken design lies in its ability to generate a quadratic model that captures both the linear and interaction effects of the chosen factors.This is particularly advantageous when studying complex machining processes, such as the end milling of NiTi alloy, where the relationship between input parameters and output responses may exhibit non-linear behavior.The design achieves efficiency by utilizing fewer experimental runs compared to a full factorial design while maintaining the capability to discern the main effects and interactions.Each run in a Box-Behnken design represents a unique combination of factor levels, and the resulting data are then utilized to fit a mathematical model.This model, often in the form of a polynomial equation, allows for the prediction of responses across the entire experimental domain [31,32].
The order of runs was generated by the Minitab program (Table 4).The range of variability of the input quantities included: ✓ A cutting speed v c in the range of 30 ÷ 50 m/min; ✓ The feed per tooth f z in the range of 0.01 ÷ 0.04 mm/tooth; ✓ A radial depth of cut a e in the range of 0.2 ÷ 0.4 mm; ✓ A constant axial depth of cut a p = 4.00 mm.To select cutting parameters for the study, a combination of literature review and pilot experiments was adopted.On this basis, it was decided that the cutting speed should be set between 30 and 50 m/min, the feed per tooth between 0.01 and 0.04 mm/tooth, and the radial depth of cut between 0.2 and 0.4 mm.The experimental design matrix is provided in Table 4.
The factors Sa (i.e., the arithmetical mean height of the surface) and Sz (i.e., the maximum height of the surface-the sum of the maximum peak height value and the maximum pit depth value within a defined area) were defined as per the ISO 25178 standard [7,9].
Generally, Sa is represented by the equation [7,9] where η(x, y) is the deviation of the surface irregularities from the base plane, and L and B are the length and the width of the given section of the surface corresponding to the baseline for the given type of surface irregularities, respectively.Surface quality, as measured by the roughness index during machining, primarily stems from process characteristics, including cutting tool geometry (e.g., corner radius and rake angle), cutting parameters (e.g., cutting speed, feed, and depth of cut), tool wear, cooling methods, and the material properties of both the tool and the workpiece [9,21,22].Surface roughness serves as a vital indicator of product quality and significantly impacts production costs.It delineates the surface geometry to be processed and, in conjunction with surface texture, which varies with the machining process, can profoundly influence tool performance (e.g., the appearance of excessive friction and wear).Obtaining the desired roughness value is an iterative and empirical process that can be time-consuming, often requiring multiple attempts until an acceptable value is attained.Since identifying the mechanism of surface roughness formation is complex and process-dependent, it is challenging to calculate using analytical formulas.Hence, precise analysis is essential to assess the surface roughness during the machining of NiTi alloy [9,17,33].
Furthermore, cutting force components, which affect both the tool and the workpiece, induce changes in the tool's position relative to the workpiece.Any deviation occurring during machining can negatively impact the dimensional accuracy of the machined surface.Analyzing and optimizing cutting forces before actual machining can provide crucial insights for planning the milling process, especially when dealing with challenging-tomachine NiTi alloys [27,29,30].
The measuring system consists of a Kistler 9257B piezoelectric dynamometer, which enables the measurement of the cutting force components in the machine tool system: the thrust (axial) force component (F z ), the feed force component (F y = F f ), and the force in the X direction component (F x ).The data were acquired using data acquisition software (DynoWare.exeVersion 3.1.2.0), and observations were tabulated to obtain a mathematical model.A schematic representation of the experimental setup is shown in Figure 3.The obtained results for the cutting force represent an average of 3 measured values.The relationship between cutting forces (tangential force F t , radial force F r , and feed force F y = F f ) and cutting parameters was analyzed.A schematic representation of the cutting force component of the tool system is shown in Figure 4.
The analysis of forces in the milling process provides information on the mechanics of the cutting process, taking into account the properties of the workpiece material and tool geometry.To model the cutting forces for end milling, a mechanistic force model is applied, which has been proven in previous research [34][35][36].This model relates the cutting force components to the undeformed chip thickness.Tangential (F t ) and radial (F r ) forces are applied on the kth flute of a rigid end mill at time t.The tangential and radial forces are then resolved into feed (F y ) and transverse (F x ) force components as In down milling, for a single fluted endmill, the shape of the cutting force depends on both the cutter engagement angle α en and the cutter swept angle α sw .These angles are related to the cutting parameters [34].
The engagement angle α en is defined using the radial depth of cut a e in the following equation: The axial engagement angle α sw is related to the axial depth of cut a p through the following equation: where a e is the radial depth of cut, a p is the axial depth of cut, D is the tool's diameter, and α el = 45 o is the cutter's helix angle parameters.Indeed, the angle θ = ∅ in + α sw represents angular positions where the cutting edge is fully involved in the cut, thus identifying a maximum cutting force [34].The analysis of forces in the milling process provides information on the mechanics of the cutting process, taking into account the properties of the workpiece material and tool geometry.To model the cutting forces for end milling, a mechanistic force model is applied, which has been proven in previous research [34][35][36].This model relates the cutting force components to the undeformed chip thickness.Tangential (Ft) and radial (Fr) forces are applied on the kth flute of a rigid end mill at time t.The tangential and radial forces are then resolved into feed (Fy) and transverse (Fx) force components as In down milling, for a single fluted endmill, the shape of the cutting force depends on both the cutter engagement angle   and the cutter swept angle   .These angles are related to the cutting parameters [34].
The engagement angle   is defined using the radial depth of cut ae in the following equation: The axial engagement angle   is related to the axial depth of cut ap through the following equation: where ae is the radial depth of cut, ap is the axial depth of cut, D is the tool's diameter, and

Results and Discussion
Table 5 presents the results of measurements of the maximum cutting force components during the milling of a NiTi alloy for the adopted research range.Figure 5

Results and Discussion
Table 5 presents the results of measurements of the maximum cutting force components during the milling of a NiTi alloy for the adopted research range.Figure 5 shows the results of cutting force components for different kinds of feed per tooth f z ; test 11, where v c = 30 m/min, f z = 0.04 mm/teeth, and a e = 0.3 mm (a), and test 7, where v c = 30 m/min, f z = 0.01 mm/teeth, and a e = 0.3 mm (b).The statistical analysis used to determine the response surface methodology was used to model the relationship between the parameters of the cutting process and the components of the cutting forces, as well as the parameters of the surface topography.The The statistical analysis used to determine the response surface methodology was used to model the relationship between the parameters of the cutting process and the components of the cutting forces, as well as the parameters of the surface topography.The response surface methodology (RSM) represents a powerful amalgamation of mathematical and statistical techniques.It involves fitting a curved surface based on experimental test data to accurately simulate the real curved surface under specific conditions, facilitating a reliable analysis of the results.The multivariate quadratic regression method is employed as a tool for determining dependencies.By capturing the interactions of all factors and test outcomes, a polynomial equation is established that precisely characterizes the relationship between the factors and the response values.Extracting optimal parameter values from the response surface aids in effectively minimizing research costs while ensuring optimal outcomes [9,25].
Based on the response surface methodology, appropriate models were selected and adequate estimated regression coefficient equations were obtained for the values of the F f max , F r max , and F t max force components for a single flute ( 6)- (8).
A multifactorial analysis of variance (ANOVA) was conducted for the maximum values of the cutting force components, F rmax , F tmax , and F fmax , to determine the influence of cutting factors (independent variables) on the dependent variable (Table 6).The dependent variable comprised the values of individual force components, while the independent variables were the radial depth of cut (a e ), feed per tooth (f z ), and cutting speed (v c ).One of the fundamental aspects in the analysis of variance involves estimating the so-called mean square (MS).The ratio of mean squares calculated for each factor to the mean square error allowed for the assessment of the individual impact of each factor on the level of the dependent variables.
The analysis of variance (ANOVA) results for the maximum cutting force components (F rmax , F fmax , F tmax ) revealed the significant effects of the considered cutting parameters (f z , a e ) on the dependent variables.For F rmax , both factors f z and ae demonstrated statistically significant effects, with p-values less than 0.05, indicating their influence on the total cutting force.In contrast, the cutting speed (v c ) did not exhibit a significant effect on F rmax , suggesting its limited impact in this context.Similarly, for F fmax and F tmax , the cutting parameters f z and ae exhibited significant effects, while cutting speed (v c ) did not demonstrate a substantial influence.The lack-of-fit tests indicated that the models adequately represented the data, with p-values greater than 0.05, affirming the appropriateness of the chosen models.These findings underscore the nuanced influence of specific cutting parameters, emphasizing the need for meticulous consideration and optimization to achieve the desired outcomes from the milling process of NiTi alloy.
Figure 6 shows the graphs of the components of the cutting forces as a function of the cutting speed (v c ), feed per tooth (f z ), and radial depth of cut (a e ).The analysis of Figure 6 shows that the cutting force components for a single flute have a very similar course.Both the feed force component (F f ), tangential force component (F t ), and radial force component (F r ) practically do not change with the increasing cutting speed (v c ). Their increase occurs with the increase in feed per tooth (f z ) and also the radial depth of cut (a e ).Incrementing the feed per tooth from f z = 0.01 mm/tooth to f z = 0.04 mm/tooth increases the feed force component (F f ) by about 300%, but the tangential force component (F t ) and radial force component (F r ) by about 200%.It should be noted that the feed force component (F f ), the thrust force component (F p ), and the radial force component (F r ) are strongly correlated with each other.Based on the final milling tests of the NiTi alloy with the use of a coated carbide end mill, the influence of the cutting parameters on the selected parameters of the surface topography was determined.Table 7 presents the results of measurements of the surface topography parameters after the milling process.Based on the response surface methodology, appropriate models were selected and adequate estimated regression coefficient equations were obtained for the values of the Sa and Sz parameters of the surface topography ( 9), (10) 7 shows the graphs of the parameters of the surface roughness, Sa and Sz, as a function of the cutting speed (v c ), the feed per tooth (f z ), and the radial depth of cut (a e ).The analysis of Figure 7 shows the variation of surface roughness, Sa and Sz, with respect to the process factors.The parameter of surface roughness Sa increases with increases in the cutting speed (v c ) and the radial depth of cut (a e ), however, the influence of the feed per tooth on roughness is not as significant as the two other parameters.For a feed per tooth f z = 0.025 mm/tooth, cutting speed v c = 50 m/min, and a radial depth of cut a e = 0.4 mm, the surface roughness parameters Sa and Sz are the highest, and their values are Sa = 2.13 µm and Sz = 25.8 µm.Therefore, the optimal combination of cutting conditions for the surface roughness parameters Sa and Sz within the testing area for the down milling should be a maximum feed per tooth f z = 0.04 mm/tooth, a radial depth of cut a e = 0.3 mm, and a maximum cutting speed v c = 30 m/min.
The surface condition of the milled NiTi alloy was then subjected to qualitative and quantitative analysis.The characteristics of the surface topography after milling with different cutting parameters are presented in Table 8 (isometric image and selected surface parameters), and were obtained using a profilometer.
According to the presented results in Table 8, it is seen that as the process factors increase from their initial range to a middle range, i.e., (feed per tooth from 0.01 to 0.025 mm/tooth, the cutting speed from 30 to 40 m/min, and the radial depth of cut from 0.2 to 0.3 mm), the magnitude of the roughness indices Sa, Sz, Sq, Sp, and Sv decrease (e.g., tests no. 7, 9, 13, 15, and 7-11).On the other hand, by further increasing the process factors from their middle range to their maximum one, it is inferred that the amplitude of roughness indices are increased (e.g., tests no.3-9, 3-11, and 4-10).The remaining amplitude parameters Ssk and Sku provided additional information on the geometric structure of the milled surfaces.Both the skewness coefficient Ssk and the concentration coefficient Sku are sensitive to valleys and peaks (including defects) occurring on the surfaces.The Ssk parameter for surfaces 4, 7-10, and 15 had a negative value, which indicated a plateau shape to these surfaces, compared, for example, to surfaces 2 and 3.The lower the value of the Ssk parameter, the more flattened the surface and the more rounded the tops of the peaks.From the point of view of the interaction of the surfaces in terms of friction node elements, the surfaces characterized by wide peaks with rounded tops are considered to be favorably shaped, while the surfaces characterized by narrow hills with sharpened tops are considered to be unfavorably shaped.In the case of the tested surfaces, surface no.11 was preferably shaped.The Sku parameter (with a value oscillating around 3) revealed that the tested surfaces are characterized by a distribution of ordinates close to the normal distribution (Table 8-Abbott's curve), which means an even distribution of both peaks and valleys on the surfaces of the tested samples (for example, surfaces 8, 10, 11, and 15).
An optimization process was conducted to provide recommendations for cutting parameters that effectively address both the cutting forces and the Sa parameter of surface roughness.The refined parameters aim to achieve a harmonious balance, minimizing cutting forces while concurrently optimizing surface roughness.This optimization reflects a commitment to delivering comprehensive recommendations for the machining process.The optimization plot for the components of the cutting forces is shown in Figure 8, using the response surface methodology (RSM).In the pursuit of minimizing the response surface methodology (RSM) process, a multi-criteria optimization was conducted (Figure 8).The optimized input parameters were determined as follows: cutting speed (v c ) at 50 m/min, feed per tooth (f z ) set to 0.01 mm, and a radial depth of cut (a e ) equal to 0.2 mm.The corresponding output parameters achieved through this optimization were a surface roughness (Sa) of 0.6 µm, roughness depth (Sz) of 4.03 µm, radial cutting force (F rmax ) of 12.24 N, tangential cutting force (F tmax ) of 34.59 and feed cutting force (F fmax ) of 9.78 N. The composite desirability index reached an optimal value of 1.00.
These results indicate that the selected combination of cutting parameters leads to the desired outcome, characterized by minimized surface roughness and cutting forces.The achieved composite desirability of 1.00 suggests an excellent agreement with the optimization goals, emphasizing the effectiveness of the applied approach in obtaining optimal machining conditions.

Conclusions
Based on the conducted research, it can be concluded that the milling of a NiTi alloy poses significant challenges.The unidentified occurrence of peaks and depressions impacts the roughness parameters, with their nature and distribution being random.This randomness may suggest their origin as a by-product of the growth associated with the processing of the NiTi material.
Modern technology, instrumentation, and software now enable the swift and automated determination of 3D surface roughness parameters, the generation of a material fraction curve, and the analysis of 3D surface topography.This capability allows for the identification of optimal conditions for the cutting process to achieve optimal properties of the machined surface.
The obtained results facilitate the determination of the machining parameters required, such as feed per tooth (f z ), radial depth of cut (a e ), and cutting speed (v c ), for achieving the expected surface roughness during machining.The analysis reveals that the parameters of surface roughness follow a similar trend.Both parameters Sa and Sz of surface roughness increase with a rise in the cutting speed (v c ) and the radial depth of cut (a e ).The lowest values of the roughness parameters for surfaces machined from the NiTi alloy were achieved with the following cutting parameters: v c = 30 m/min; f z = 0.04 mm/tooth; and a p = 0.3 mm, while the highest values were obtained with the following parameters: v c = 50 m/min; f z = 0.025 mm/tooth; and a p = 0.4 mm.
Additionally, measuring the cutting force components during the milling process of a NiTi alloy is crucial for process evaluation.The analysis reveals that the cutting force components follow a similar trend.Both the feed force component (F f ), tangential force component (F t ), and radial force component (F r ) exhibit minimal changes with increasing cutting speed (v c ). Their increase is associated with a greater feed per tooth (f z ) and radial depth of cut (a e ).The lowest values for the total cutting force components were recorded when machining the NiTi alloy with the following cutting parameters: v c = 40 m/min; f z = 0.01 mm/tooth; and a p = 0.2 mm, while the highest values were obtained with the following parameters: v c = 40 m/min; f z = 0.04 mm/tooth; and a p = 0.4 mm.
In summary, measurements of the cutting force components and the qualitative and quantitative analysis of parameters characterizing the geometric structure of the tested surfaces enable the definition and planning of further steps to improve the milling process of challenging-to-cut materials, including the NiTi shape memory alloy.The appropriate selection of cutting parameters allows for the obtaining of surfaces with the required technological quality.
Furthermore, the multi-criteria optimization conducted in this study demonstrates a balance between cutting forces and surface roughness.The application of innovative optimization algorithms and methodologies contributes to the advancement of the precision machining of NiTi alloys, ensuring that the selected combination of cutting parameters leads to the desired outcome, with a composite desirability index reaching an optimal value of 1.00.
The primary emphasis on innovation and novelty in this article lies in the comprehensive analysis of 3D surface roughness parameters.By delving deeply into the intricate details of the 3D surface's characteristics, an approach has been introduced to help understand and optimize the milling process of NiTi alloys.This comprehensive examination of

Figure 1 .
Figure 1.Experimental set up for milling NiTi.

Figure 1 .
Figure 1.Experimental set up for milling NiTi.

Materials 2024 ,
17, x FOR PEER REVIEW 4 of 19 was used in the experiments.The cutting tool was a 6 mm diameter coated carbide end mill (grade: ACW52) with four teeth (Sumitomo SSEH 4060W-R10), presented in Figure2.

Materials 2024 , 19 Figure 3 .
Figure 3. Schematic representation of the measurement of the cutting force.

Figure 3 .
Figure 3. Schematic representation of the measurement of the cutting force.Materials 2024, 17, x FOR PEER REVIEW 8 of 19
shows the results of cutting force components for different kinds of feed per tooth fz; test 11, where vc = 30 m/min, fz = 0.04 mm/teeth, and ae = 0.3 mm (a), and test 7, where vc = 30 m/min, fz = 0.01 mm/teeth, and ae = 0.3 mm (b).

Figure 4 .
Figure 4. Schematic representation of the cutting force component in the tool system, where a e [mm]the radial depth of cut, ∅ in [rad]-entry angle, ∅ out [rad]-exit angle, α en [rad]-radial engagement angle, n [rev/min]-spindle speed, F t [N]-tangential cutting force, and F r [N]-radial cutting force [34].

Figure 5 .
Figure 5.The result of cutting force components for different kinds of feed per tooth fz; test 11 (a) and test 7 (b), where Fx-blue color, Fy-red color, and Fz-pink color.

Figure 5 .
Figure 5.The result of cutting force components for different kinds of feed per tooth f z ; test 11 (a) and test 7 (b), where F x -blue color, F y -red color, and F z -pink color.

Figure 6 .
Figure 6.Graph of the components of cutting forces, F tmax , F fmax , and F rmax , for a single flute.

Figure 7 .
Figure 7. Graph of the surface roughness parameters Sa and Sz.

Figure 8 .
Figure 8. Multi-criteria optimization for cutting force components and surface roughness parameters Sa and Sz-RSM.

Table 1 .
The selected parameters for measurement of the milled surface of β-NiTi alloy A f = 60 °C.

Table 2 .
The chemical composition of NiTi, A f = 60 °C-the EDS (Energy-Dispersive Spectroscopy) analysis.

Table 1 .
The selected parameters for measurement of the milled surface of β-NiTi alloy   = 60 ℃.

Table 4 .
Values of the cutting parameters f z , a e , and v c for NiTi alloy, selected by means of the RSM (response surface methodology).

Table 5 .
Cutting force components according to the RSM.

Table 6 .
Analysis of variance for cutting force components.

Table 7 .
Three-dimensional surface texture parameters according to ISO 25178.