1. Introduction
Ultrashort pulse lasers (USPLs) are advanced devices capable of emitting light pulses lasting only femto- or picoseconds [
1]. USPLs operate by emitting ultra short pulses that allow for precise ultrafast energy deposition into materials and ultrafast energy delivery, thus creating extreme localized conditions that induce non-linear optical effects and material modifications or removal while minimizing surrounding damage, making them ideal for high-precision micro- and nanofabrication [
2]. USPLs are revolutionizing fields like manufacturing, biomedical science and photonics by enabling precise micro-machining, advanced surface texturing and innovative material processing [
1,
3]. The unique properties of USPLs allow them to create intricate micro- and nanoscale structures with exceptional precision with minimal heat-affected zone during laser processing, which ensures superior quality in micromachining applications [
2,
3]. One prominent industrial application of USPLs is laser surface texturing (LST), which involves modifying the surfaces of materials to enhance their mechanical, chemical or optical properties. LST can significantly improve properties such as wettability, friction and adhesion, making it valuable for various manufacturing industries [
4].
For widespread industrial adoption, the ability to optimize laser manufacturing parameters for specific textures and functionalities becomes critical [
4,
5]. However, identifying the best processing strategies and process parameters requires sophisticated methods and tools that ensure efficiency and effectiveness. Recent advancements have focused on increasing the power and repetition rates of USPLs, with some systems now reaching tens of MHz and bridging the gap between high-quality processing and industrial productivity [
4,
6]. Together with these developments, innovations in high-speed beam scanning and multi-beam processing techniques are paving the way for efficient industrial applications of USPLs [
4,
6]. Additionally, since the performance of these textured surfaces heavily depends on precise control of laser parameters such as pulse duration, intensity, repetition rate and beam focus, the optimization of LST parameters is crucial to achieve desired surface functionalities and ensuring efficiency in industrial applications [
4]. By optimizing these parameters, manufacturers could tailor surface properties to specific applications, maximizing the functional and economic benefits of textured surfaces.
Nowadays, most industrial process still rely on traditional trial-and-error methods for optimizing LST parameters, but they are often time-consuming and resource-intensive [
4,
5,
7,
8]. These approaches may involve testing one parameter independently while maintaining the others constant, which limits the exploration of complex interactions between variables. This highlights the need for systematic and efficient optimization techniques to navigate the vast parameter space and achieve reliable results. However, the realization of multiple experiments to find patterns and correlations between process parameters and output variables still becomes too time and resource demanding. In this scenario, computer simulations and machine learning (ML) appear as an alternative to advance the understanding and optimization of USPLs. The use of simulations solving complex nonlinear equations to model pulse propagation, material removal and nonlinear effects enabled the design and optimization of laser processing and the study of material interactions [
9,
10]. These simulation techniques include atomistic, microscopic and phenomenological studies, such as first-principles calculations, molecular dynamics simulations, computational fluid dynamics simulations and absorption and ablation models like the two-temperature and Drude absorption models [
11,
12,
13,
14]. Similarly, ML accelerated system optimization and calibration, reducing trial-and-error experimentation [
4,
7,
8,
15]. ML enhanced pulse characterization by reconstructing pulse shapes and phases from experimental data, enabled predictive modeling for laser stability and performance, optimized material processing tasks and detected system faults [
16,
17]. Together, the combination of computational models that simulate the interactions between laser pulses and material properties with ML algorithms showed that it is possible to identify correlations between LST parameters and the resulting surface textures [
4]. These methods not only speed up the optimization process but also enable the exploration of parameter combinations that might be overlooked in traditional methods in stainless steel. However, these studies often focus on specific materials, and their application is restricted to such specific configurations. LST is profoundly influenced by the material being processed, since each material exhibits unique physical, thermal and optical properties that determine how it interacts with laser pulses. Parameters such as absorption coefficient, thermal conductivity, melting point and reflectivity vary widely between materials and directly impact the energy required to achieve the desired texture. In this context, understanding these dependencies is crucial for tailoring LST processes to specific materials, and then extrapolate the impact of LST parameters on surface texture to different materials.
In the present work, we propose a novel approach based on transfer learning (TL) applied to experimental and simulation data to deal with the material dependence of the LST technique, thus enabling not only the transfer of knowledge learned on simulation to experimental data but also on one material to a different one. This approach considerably reduced the number of simulations and experiments needed for training, thus saving time and resources, and making simulation results highly applicable in industrial environments. TL has already showed its great potential for the accurate prediction of material properties or defect detection [
18,
19], but this work demonstrates that TL can also encode transferable chemistry-dependent features in LST, allowing robust generalization across materials with only a very limited amount of new data corresponding to fewer than 50 experiments. Furthermore, with the use of explainable Artificial Intelligence (xAI) techniques to compare feature sensitivities across materials, we gained actionable physical and process-level insight, relevant for generating surfaces with tailored textures in industrial environments. The techniques used in the present work are described in
Section 2 and the results in
Section 3.
2. Methods
2.1. Experimental Techniques
Experimental data were obtained using a femtosecond laser system integrated with a galvanometric beam scanning setup. A Monaco 1035-80-60 femtosecond laser source (by Coherent Corp., Santa Clara, CA, USA) was employed, delivering linearly polarized pulses at a central wavelength of 1035 nm and with a measured pulse width of approximately 280 fs.
Figure 1 shows a schematic diagram of the experimental setup and images of the working station and laser device used at AIMEN facilities for the experimental characterization. The pulse repetition rate of this laser system can be tunable from single-shot operation up to 1 MHz using an acousto-optic modulator, and up to tens of MHz without pulse picking. The output beam exhibited a near-Gaussian spatial profile, with a beam diameter of approximately 2.8 mm in both transverse directions and a circularity of about 96%. Among the USP laser systems available at AIMEN facilities, this laser system was chosen as the most similar to the one used by the LS-Plume
® simulator developed by Lasea [
20].
The laser beam was guided through a galvanometer scanner and focused onto the sample surface using a telecentric fused-silica F-theta lens optimized for the 1030–1080 nm wavelength range. The lens had a nominal focal length of 160 mm, a maximum input beam diameter of 14 mm and a usable working area of 100 × 100 mm2. Due to the dynamic limitations of the galvanometric scanner, scanning speeds were kept below 1500 mm/s to ensure accurate beam positioning and to guarantee that the effective scanning velocity on the sample matched the programmed values.
Laser engraving tests were performed using a scanned-line machining strategy, producing straight channels of approximately 5 mm length. For each investigated material, i.e., SS 316, Si and Al, channels were fabricated using different combinations of pulse energy (between 10 and 50 uJ), repetition rate (between 10 and 200 kHz), scanning speed and number of passes (between 1 and 10), thus covering a broad range of peak fluence and pulse overlap conditions. Identical processing strategies and parameter ranges were applied to the three different materials to ensure consistency across experimental datasets.
The effective laser spot size on the material surface was experimentally determined by generating pulse-separated irradiations. This was achieved by appropriately adjusting the scanning speed and pulse repetition rate to minimize pulse overlap for each peak fluence condition. The resulting individual laser footprints were later analyzed to extract the beam diameter at focus, which was used for the calculation of fluence and overlap parameters.
The fabricated channels and laser footprints were characterized using a Sensofar Neox S confocal optical microscope (sourced by Sensofar Metrology, Terrassa, Spain). Measurements were performed in confocal scanning mode using a 50× objective, enabling high-resolution three-dimensional surface topography acquisition. From the measured profiles, the channel depth and the FWHM of the depth profile were extracted and used as output variables in the subsequent data analysis and ML models.
2.2. Computer Simulations
Computer simulations were used to extend experimental findings. For this purpose, a simulation model that solves the well-defined absorption law of energy and includes incubation effects, surface reflectivity and Gaussian beam diameter variations due to focal distance [
21] was used to reproduce experimental ablation depths as a function of ablation energy, ablation threshold and radiation penetration depth, and was run through the LS-Plume
® simulator developed by Lasea [
20]. Thanks to it, we could simulate different surface topographies resulting from ultrafast laser ablation with different machining methods (scanned lines or areas, precession and percussion) with stainless steel 316L (SS 316), thus obtaining different ablation profiles for different laser settings. These laser settings correspond to input process parameters such as pulse energy, repetition rate, spot size at the focal point and scanning parameters such as speed, pitch between consecutive lines and incident angle. Similarly, material-specific parameters for SS 316 were used, including ablation threshold, laser penetration depth and refractive index.
The model expands on the classic logarithmic ablation law, where the ablation depth per pulse
z depends on the material’s penetration depth
and the ratio between the local applied laser fluence
F and the material’s ablation threshold
:
Because the laser beam has a Gaussian intensity profile, the local fluence decreases exponentially at a radial distance
r from the center of the beam, where
is the peak fluence and
is the beam radius at
:
To accurately predict dynamic, multi-pulse industrial operations (such as engraving lines or areas), the model integrates several critical interdependent phenomena:
Incubation: The material accumulates microscopic defects with
N successive laser pulses, which increases its absorption coefficient and lowers the ablation threshold
relative to the single-pulse threshold
using an incubation coefficient:
where
S stands for the incubation coefficient, which is an empirical parameter that depends on the strength of the incubation in the target material and is bound between 0 and 1.
Local Surface Angle and Reflectivity: As the laser carves into the material, the initial flat surface becomes a curved cavity. The local angle of incidence changes continuously, altering both the geometric area intercepting the beam and the material’s reflectivity
R. The model dynamically recalculates the local absorbed fluence
based on the local wall slope angle
and Fresnel equations for specific light polarizations:
Beam Propagation: As the trench deepens by a distance
z, the bottom moves away from the optical focal plane. The model integrates Gaussian beam propagation laws to adjust for the natural widening of the laser spot radius
based on the Rayleigh distance
:
By replacing pure radial symmetry with a 2D (x, y) numerical grid, the algorithm combines scanning speed v and pulse repetition rate to determine the pulse distance interval , calculating the exact spatial distribution of energy deposited during a scan.
The LS-Plume® simulator showed a good agreement between simulated and experimental results, in part thanks to the fact that thermal effects are not considered in the simulation model while experiments were also run under conditions where thermal contributions to laser ablation are minimal. This engineering tool successfully balances computational speed with physical accuracy by unifying incubation, Fresnel reflectivity, beam divergence, and scanning kinematics, and provides manufacturers with a reliable method to predict final part topography and optimize industrial laser processes for both time and energy efficiency. The model was validated using polished 316L stainless steel samples irradiated with a 1030 nm femtosecond laser (≈330 fs). The material’s intrinsic properties were determined to be J/, S = 0.8, and = 50 nm. The resulting micromachined topographies were mapped using a high-resolution confocal optical microscope, and the model perfectly predicted ablation depth and wall profiles for low to medium energy regimes, as well as the effects of shifting scanning speeds (from 50 to 450 mm/s). In multi-pass milling (17 to 33 passes), the simulated curves closely matched the real geometric slopes. A slight discrepancy appeared at 65 passes, where the real trench width was 8 µm narrower than predicted; the authors attribute this to debris accumulation on the edges and thermal swelling, which were excluded from the model’s simplified hypotheses. Finally, tests with a 15-degree tilted beam successfully demonstrated the model’s ability to predict asymmetrical profiles and negative wall conicities (97° angles).
The generated data relied on the scanned line machining strategy, where the ablation profile arises from the overlap of parallel engraved lines spaced evenly. To handle the large volume of data generated, it was saved in tabular format and processed with Python 3.
2.3. Machine Learning
ML is a branch of artificial intelligence that enables systems to learn patterns and make decisions or predictions from data. ML encompasses different techniques, depending on the problem to be solved and the data type. In this subsection, we introduce the different approaches used in the present work.
2.3.1. Neural Networks
In regression problems, neural networks (NNs) are ML models designed for predicting continuous numerical outputs from input data [
22]. They consist of interconnected layers of neurons, where each neuron applies a mathematical operation to its inputs and passes the result through an activation function [
23]. These layers are organized into an input layer (representing the input features), one or more hidden layers that capture complex patterns, and an output layer that generates the predicted target values. Thus, the general equation that represents a NN with
n hidden layers can be expressed as follows:
where
is the input vector,
is the output vector,
n is the number of hidden layers,
and
are the weight matrices and biases, respectively, connecting layer
to layer
i and
is the activation function for layer
j, usually a ReLU, sigmoid, tanh or linear function.
Training a NN involves learning the
and
coefficients in such a way that the error between its predictions and the actual target values is minimized. This error is measured using a loss function, such as Mean Squared Error (MSE) or Mean Absolute Error (MAE), which quantifies how far the predictions are from the actual values. The learning process uses a method called Backpropagation algorithm to adjust these weights and biases by calculating the gradients of the loss function with respect to each parameter in the network and then using optimization algorithms, like Gradient Descent or Adam, to update the parameters iteratively [
23].
Thanks to their flexible architecture and non-linear nature, NNs can model complex relationships in data and capture intricate patterns. Regularization techniques, such as dropout or L2 regularization, are often applied during training to prevent overfitting and improve generalization [
23]. NNs have already showed their huge potential in industrial, financial or banking applications [
24].
2.3.2. Transfer Learning
TL is a powerful ML approach that leverages the knowledge gained from a source domain to extend its applicability to a different domain [
25]. TL, particularly through fine-tuning, has become a cornerstone of modern ML applications. It has facilitated breakthroughs in fields such as computer vision, natural language processing and medical diagnostics by enabling the reuse of robust pre-trained models [
25]. By starting with a pre-trained model, TL allows to generate a new model valid in a different domain, thus being especially useful in scenarios with limited labeled data. This approach works by transferring the patterns learned in the original domain and derived from a large dataset to another domain, allowing models to generalize better to new tasks. Thus, this approach assumes that there are patterns which work in both domains, and just tries to learn the differences between the two domains.
In this work, we propose two different approaches: the first one to learn and correct deviations in simulation data from experimental results, in which the source and target domains correspond to simulations and experiments, respectively, and the second one to transfer the patterns learned in SS 316 (source domain) to Si and Al, in which these different materials constitute the target domains. Specifically, a NN initially trained on SS 316 simulation data is fine-tuned to extend its applicability to SS 316, Si and Al experimental data. This is achieved through fine-tuning, a common TL technique in which a pre-trained model is adapted to a new task by updating part of its parameters. The fine-tuning technique involves taking a pre-trained NN and adapting it to the target task by updating its parameters. Typically, the first network’s layers remain unchanged, while the last layers are retrained or some extra layer is added to suit the new dataset in the new domain. This strategy is illustrated in
Figure 2: yellow circles represent input features; dark blue nodes denote pre-trained layers kept frozen; and red nodes correspond to layers retrained or newly added for the target domain. Since the base model has already captured the fundamental relationships between input and target variables, the new layers focus on learning the deviations required for accurate predictions in the new domain.
From a physical perspective, the base network learns geometry- and energy-driven relationships inherent to the LST process that are largely material-independent. The TL stage then adjusts experiment- and material-dependent scaling factors associated with thermophysical and chemical properties. Usually, this new training is simpler and requires a significantly reduced amount of training data, making it particularly suitable for laser material processing, where experimental data acquisition is costly and time-consuming.
Additionally, this also results in lower training times, thus making this approach less computationally demanding. However, appended extra layers can be added either before or after the base layers, depending on the specific task and the architecture of the model. When they are added after the base layers, these new layers are trained to adapt the pre-trained features to the new task; while they can be added before the base layers if the input data for the new task have a different structure or require additional preprocessing.
In applying TL to capture deviations between simulated and experimental data, we used base models consisting of a NN with four input features and two target features, trained on simulation data for SS 316 (
Section 3.1). We trained models with varying numbers of hidden layers and nodes per layer, considering both a multi-target configuration with two outputs in the same network and single-target configurations treated independently. Once these pre-trained networks were validated, their training parameters were frozen, and an additional layer was introduced. The hyperparameters of this new layer were then fine-tuned using experimental data to predict the targets in the new domain. Given the small size of the experimental dataset (20 data points for SS 316, 49 for Si and 46 for Al), training a complex NN from scratch would not have been feasible to capture all input–output patterns. However, with the TL approach, it became possible to adapt the base models trained on SS 316 simulation data by adding an extra hidden layer with only a few parameters to be fitted with experimental results. The achieved accurate adaptation with such a limited number of experimental samples was possible because while the base models could capture relationships inherent to the LST process, the new layers capture experiment- and material-specific corrections, thus showing a separation between shared physical behavior and setup- and material-specific corrections.
In our comprehensive hyperparameter search for the base and TL models, we systematically evaluated a wide range of NN architectures by tuning the number of hidden layers (from 1 to 4 in the base model, and 1 additional layer in the TL model), number of epochs (50–300), the number of units per layer (from 2 to 256 in the base model, and from 1 to 32 in the TL model) and activation functions (comparing ‘identity’, ‘relu’ and ‘sigmoid’ functions), while also rigorously testing several regularization strategies, including dropout (with rates from 0.0 to 0.25), batch normalization and L2 weight decay (with penalties from 1 × 10−5 to 0.0).
2.3.3. Explainable Artificial Intelligence
xAI encompasses a set of techniques designed to make the decisions and predictions of complex ML models transparent and interpretable to humans. In this work, we used SHAP (SHapley Additive exPlanations) values to quantify input feature importance as derived according to cooperative game theory. SHAP conceptualizes the prediction task as a cooperative game where individual features act as players, and the model’s prediction constitutes the total payout [
26].
To compute the exact contribution of a specific feature
i, the methodology evaluates the change in the model’s prediction when feature
i is included versus when it is excluded, averaged across all possible subsets of remaining features. Mathematically, the Shapley value
for feature
i is defined as:
where
M is the total set of features,
S is a subset of features excluding
i, and
is the conditional expectation of the model outcome given the features in
S.
Because neural networks exhibit highly non-linear decision boundaries, computing exact Shapley values is computationally intractable. Therefore, we utilize the KernelExplainer, a model-agnostic local explanation method that uses weighted linear regression to approximate these values, by observing local shifts in predictions.
For any individual prediction, a feature’s SHAP value represents its localized force, indicating the magnitude and direction (positive or negative push). In this work, we visualize the results using SHAP summary plots. These plots allow us to interpret the directional impact of features, demonstrating whether high or low underlying values of a specific physical feature correlate with an increase or decrease in the network’s predictive output.