1. Introduction
Femtosecond laser systems have become a fundamental tool in ultrafast optics, supporting a wide array of high-precision applications, including micromachining [
1], nonlinear spectroscopy [
2], optical coherence tomography [
3], and biomedical imaging [
4,
5]. These systems generate pulses as short as 10⁻¹⁵ seconds with extremely high peak powers [
6], which makes them highly sensitive to minor disturbances. Optical misalignments, thermal drift, mechanical vibrations, and even subtle environmental changes can affect beam quality, causing shifts in centroid position, shape deformations, and fluctuations in intensity distribution [
7].
While various beam diagnostic tools exist, most rely on isolated or threshold-based measurements such as centroid tracking, beam width estimation, or basic intensity histograms [
8,
9,
10,
11]. These conventional methods are often limited in scope. They tend to miss short-lived or low-magnitude anomalies, struggle with complex beam dynamics, and are unsuitable for adaptive, automated analysis in changing experimental environments. As laser systems become more sophisticated and performance demands increase, these limitations become more apparent.
In contrast, the methodology proposed in this work is built around a unified framework that integrates five core diagnostic strategies: spatial tracking [
12], intensity statistics [
13], beam shape analysis [
14], edge detection [
15], and machine learning-based anomaly detection [
16]. Beam centroid coordinates are computed for each profile image to monitor pointing stability at a sub-pixel level. Simultaneously, we evaluate statistical metrics such as mean intensity and variance to capture fluctuations in energy distribution, which can reflect gain instabilities or optical disturbances. Sobel gradient-based edge detection is used to assess beam sharpness and structural clarity. The approach also includes geometric shape analysis, where beam ellipticity and roundness are extracted to evaluate the symmetry and focus of the beam over time. We apply an unsupervised Isolation Forest machine learning technique to detect frames that deviate from typical behavior [
18]. These anomalies often correspond to real physical changes, sudden lensing effects, thermal shifts, slight mirror movement, or even air turbulence in the lab [
19,
20]. By catching these subtle patterns early, the system provides practical insights that are easy to miss through manual inspection.
By combining mathematical precision, data processing, and intelligent pattern recognition, this work establishes a new standard for ultrafast laser beam diagnostics to meet the high-performance demands of facilities like the ELI-NP Front-End, where precision, reliability, and predictive maintenance are essential for success in high-intensity laser experiments.
2. Experimental Detail and Image Acquisition
A simplified block diagram of the ELI-NP Front-End laser system is shown in
Figure 1. It begins with a mode-locked oscillator that generates low-energy seed pulses amplified through a regenerative amplifier, and further pulses are amplified using an Optical Parametric Chirped Pulse Amplifier (OPCPA) [
21,
22,
23] to preserve the broad spectral bandwidth necessary for femtosecond pulse durations. The result is a beam with pulse energies exceeding 10 mJ, pulse durations of about 20 picoseconds, and a spectral bandwidth greater than 63 nm (FWHM), operating at a repetition rate of 10 Hz.
The dataset analyzed in this study comprises 100 sequential profile images of laser beam acquired from the Front-End of the ELI-NP high-power laser system [24, 25]. The beam images are captured using a high-resolution CCD camera (ACA2440-20gm, Basler, Inc.). The CCD camera is positioned at the diagnostic output of the Front-End laser chain, where beam quality is critically evaluated before further amplification stages. The laser beam is attenuated using a calibrated optical attenuation system composed of neutral-density filters to protect the camera sensor from high-intensity damage. The Front-End laser system is operated at a repetition rate of 10 Hz, delivering 10 pulses per second, while the image acquisition process is performed at a much slower sampling rate over an extended period. A total of 100 images are captured over approximately 4 hours, resulting in an average acquisition interval of roughly 144 seconds (i.e., 2 min and 24 sec) per image.
The slower sampling strategy is not to monitor pulse-to-pulse variations but to build a long-term view of beam behavior over the extended operation. This method makes it possible to detect subtle drifts, thermal changes, vibrations, or alignment problems that are hard to notice when analyzing every single laser pulse. The imaging system is connected to a custom-built data acquisition and storage platform developed specifically for the ELI-NP facility. It enabled real-time logging, frame indexing, and synchronized metadata recording. The complete dataset, including images and acquisition parameters, is stored in a dedicated database for reliable access, reproducibility, and laser system performance analysis. Each image is stored along with its timestamp and acquisition parameters, including CCD calibration and exposure settings, forming a structured dataset for analysis.
Figure 2 presents a composite overview of all 100 beam images, arranged sequentially from Image 1 (top-left) to Image 100 (bottom-right). Each image in the dataset shows the intensity pattern of the laser beam in two dimensions, recorded after the beam attenuation and normalization. When viewed as a composite, these images make it easy to spot how the beam’s shape and position change over time. For example, frames 8 and 10 clearly show differences in brightness, contrast, and edge sharpness, early signs that something unusual may have happened in the system. Later in the analysis, we confirmed these visual clues using more detailed methods, including centroid tracking, intensity variance, Sobel edge detection, and machine learning through the Isolation Forest algorithm. This careful data collection and organized storage formed a strong base for the more advanced analysis that followed.
3. Beam Profile Analysis, Results, and Visualization
3.1. Centroid Calculation
The centroid, the center point of the beam’s intensity distribution for each of the 100 recorded images, is calculated to evaluate how stable the beam is over time. The centroid coordinates (x
c, y
c) use a standard center-of-mass formula as in Equations 1 & 2.
I(x,y) is the pixel's intensity at coordinates (x,y), and M × N is the image resolution.
We tracked how these centroids moved across all images to assess pointing stability.
Figure 3 (a) shows a time-series plot of the centroid positions in both X and Y directions. The X-axis represents the image index, ranging from 0 to 100, and the Y-axis indicates the centroid position in pixel units. The X-centroid hovers around 270 pixels, while the Y-centroid stays close to 195, with only small fluctuations, typically within ±2 pixels, which suggests that the laser beam is highly stable during operation.
Figure 3(b) presents a scatter plot of the centroids in the X-Y plane for better visualization and overall spatial jitter. The points form a dense, nearly circular cluster, showing no strong directional drift. This compact spread indicates that any movement is random and isotropic rather than systematic. This spatial representation is critical for identifying directional bias, potential elliptical jitter, or beam drift. Centroid analysis is essential in systems with critical tight beam alignment. Even small drifts can lead to misalignment in downstream optics. The fact that the beam stayed centered with minimal jitter shows the system was well-aligned and stable throughout the data acquisition process.
3.2. Beam Intensity Statistics
The mean intensity and variance are calculated using Equations 3 & 4 for each image to check the beam’s brightness consistency.
μ is the mean intensity, which shows the average brightness/intensity in each image, and σ² is the variance, which shows how much the intensity varies across the image. The square root of variance √σ² = σ is the standard deviation, representing the spread or non-uniformity in pixel intensity. M × N is the total number of pixels in each image (i.e., image resolution), and I(xij) is the pixel's intensity (i,j).
In
Figure 4 (a), the X-axis represents the image number, the left Y-axis indicates mean intensity in grayscale levels, and the right Y-axis shows the variance in the same units. Most mean intensity values lie in a stable range of around 50 to 53, with an initial spike below frame 10, where a few images briefly exceed 65. The variance follows the same trend; a large spike (around 6000) appears in the first few frames, then drops and stabilizes at around 3300. These early peaks may indicate transient optical artifacts such as reflections, calibration frames, or sudden energy fluctuations, and high initial variance signifies hot spots or non-uniform intensity patterns in the beam, which are absent in most subsequent frames.
The histograms in
Figure 4 (b) show two statistical features. The top panel displays the distribution of variance values, with most images clustered tightly around the 3300 mark and a few outliers reaching up to 6000, confirming the temporal anomaly in the line plot. The bottom panel presents the histogram of mean intensity, with most frames centered around 53 and only a small number showing significantly higher brightness. These statistical analyses are meaningful because they quantify beam quality and reveal inconsistencies that may not be visible through simple image inspection. Monitoring intensity and its variance provides essential insight into beam quality. A low variance paired with a stable mean suggests uniform energy delivery, critical for applications involving precision focusing or energy-sensitive interactions. These metrics also serve as early indicators of gain fluctuation, alignment drift, or contamination in the optical path.
3.3. Edge Detection
A classical Sobel gradient operator is employed across 100 sequential beam images to evaluate spatial sharpness and edge definition in the laser beam profiles. Before applying edge detection, a 2D Gaussian filter [
26] is used to suppress high-frequency noise and prevent false edge detection. The Gaussian function is defined in Equation 5.
σ controls how much the image is blurred, and a larger σ means more smoothing (x,y) represents the pixel's position relative to the center of the blur. This filtering helps reduce random noise while preserving the main structure of the beam.
After smoothing, the Sobel gradient/operator [
27,
28] is applied to detect intensity changes in horizontal and vertical directions. The gradient components are defined by Equation 6. G
x and G
y show how brightness changes across the image, and the overall edge strength at each pixel is given by Equation 7.
Then, the average gradient value for the image is calculated in Equation 8.
Figure 5(a) shows the average Sobel gradient Ḡ for each of the 100 images. The X-axis represents the image number, and the Y-axis shows the average edge sharpness. Some frames stand out with higher or lower values. For example, Image 10 has a high gradient of about 28, meaning the beam is well-focused with sharp edges. In contrast, Image 91 has a much lower value, around 18, which suggests the beam is more blurred or out of focus. The peak near Image 10 may have been caused by a brief change in the optical setup, possibly a small alignment shift or interference pattern that made the beam appear sharper at that moment. To better understand this,
Figure 5(b) shows 10 sample beam images from across the dataset. Each image is labeled with its gradient value. The visual patterns match the data: images with higher gradient values, like Image 10, have clear, sharp edges, while those with lower values, like Image 90, appear soft and less defined. This gradient analysis is a useful way to measure how focused the beam is over time and detect any sudden sharpness changes that could affect system performance.
3.4. Beam Shape Metrics
Beam symmetry is analyzed using ellipticity and roundness, which describe the overall shape and balance of the beam profile in each image. Ellipticity is calculated as the ratio of the beam width in the X-direction (w
x) to the width in the Y-direction (w
y), Equation 9.
Roundness is the ratio of the smaller beam width to the larger one, regardless of direction, Equation 10.
The beam widths wx and wy used in these calculations are derived from fitting a Gaussian function to the beam's intensity distribution in each direction or determining the full width at half maximum (FWHM).
Ellipticity and roundness would be close to 1 in a perfectly circular beam.
Figure 6 illustrates the temporal behavior of two beam shape metrics, ellipticity and roundness, across 100 sequential images. The image index ranges from 0 to 100 on the horizontal axis, while the vertical axis indicates the metric values for ellipticity and roundness. The ellipticity remains around 1.13 throughout the dataset, meaning the beam is slightly stretched in one direction, about 13% wider horizontally than vertically. The roundness stays near 0.89, confirming that the beam keeps an elliptical shape with only minor variations. These results indicate that the beam shape is stable over time. The slight asymmetry is consistent and doesn’t show any abrupt changes, which suggests good optical alignment and no significant deformation during the measurement period. Shape metrics like these are especially important in high-power and ultrafast laser systems, where even small distortions can affect beam focusing and energy delivery. Regular monitoring of ellipticity and roundness helps detect early signs of misalignment, thermal effects, or other disturbances in the optical path.
3.5. Anomaly Detection Using Isolation Forest
After extracting various beam parameters from the dataset, we applied anomaly detection to identify frames that showed unusual behavior automatically. This step helps catch short-term instabilities or small deviations that might not be obvious in standard plots. We used the Isolation Forest algorithm, an unsupervised machine learning method, to detect outliers. It works by building a set of decision trees to isolate each data point. Points that are isolated quickly, meaning they behave very differently from the rest, are marked as anomalies. The anomaly score for each frame is calculated using Equation 11.
E(h(x)) is the average number of splits (path length) needed to isolate the data point x, and c(n) is a normalization factor based on the total number of points n; lower path length means higher anomaly scores.
Figure 7 provides the flowchart diagram of the isolation forest process, which works by randomly selecting features and splitting values to construct decision trees and then computing the path length required to isolate each data point. Decision nodes assess whether the path length is short and the calculated anomaly score exceeds a defined threshold. Based on these conditions, the data point is classified as either an anomaly or normal.
We applied the Isolation Forest algorithm to four key beam features, i.e., ellipticity, roundness, mean intensity, and Sobel gradient. The goal was to identify frames with unusual values that may indicate temporary beam instability. The anomaly detection results are presented in
Figure 8, with each sub-figure focusing on one parameter.
Figure 8(a) shows anomalies based on beam shape; image frames 10, 20, 65, 83, and 99 are flagged due to small but noticeable changes in ellipticity and roundness. These shape deviations may result from thermal lensing, alignment drift, or mechanical vibration, even if they are not obvious in raw images.
Figure 8(b) presents the detection results for mean intensity; image frame 10 shows a sharp spike in brightness, significantly higher than the rest of the dataset, which may reflect a sudden energy fluctuation, an optical reflection, or a disturbance in the laser gain.
Figure 8(c) highlights anomalies in Sobel gradient values, which indicate beam edge sharpness; again, image frame 10 is marked as an outlier with a gradient of around 28, much higher than surrounding frames, which may suggest a momentary increase in beam focus or clarity, possibly due to a quick alignment change or transient optical effect. The consistent detection of frame 10 across multiple features reinforces its significance as a transient anomaly.
The fact that image frame 10 is independently identified as an anomaly across all three parameters, shape, intensity, and sharpness, strengthens its significance as a real and measurable event. Detecting such frames is valuable for diagnosing short-lived disturbances that may not appear in average trends but still impact beam quality. This approach makes monitoring beam behavior more precise and responding to performance issues before they affect critical applications possible. These plots highlight the necessity of integrating such analysis into laser system monitoring and control, ensuring high performance and robust quality assurance for essential laser applications.
4. Discussion and Conclusion
The analysis presented in this work combines several image-based methods to evaluate the stability and quality of an ultrafast laser beam over time. By measuring centroid position, intensity fluctuations, edge sharpness, and beam shape, the system provides a complete picture of how the beam behaves under real operating conditions.
Each parameter offers specific insight. Centroid tracking confirmed that the beam’s pointing was stable, with minimal jitter across 100 frames. Intensity analysis showed that the beam maintained a consistent brightness level after a brief initial fluctuation. Sobel edge detection helped identify changes in focus or beam clarity, and shape metrics such as ellipticity and roundness demonstrated that the beam maintained a steady elliptical profile throughout the acquisition period. The use of Isolation Forest added an important layer of automated intelligence. It successfully identified short-term anomalies aligned with visible and statistical changes in beam features. Notably, frame 10 was flagged by multiple indicators, confirming it as a brief but significant disturbance. These types of events, though small, can affect downstream experiments, especially in high-precision setups where beam consistency is critical. This approach is effective because it combines standard measurements with automated detection. Instead of relying on a single parameter or fixed threshold, the system monitors multiple features and adapts to the data. This makes it more sensitive to subtle instabilities and better suited for long-term diagnostics. The proposed framework offers a practical and reliable method for beam monitoring in ultrafast laser systems. It captures overall trends and detects brief disturbances that might otherwise go unnoticed. The approach is flexible, scalable, and well-suited for integration into routine laser system maintenance, alignment checks, or performance optimization. Further development could support real-time feedback and predictive control in advanced laser facilities.
Acknowledgments
Work was funded by Romanian Ministry for Research, Innovation and Digitalization through ELI-NP IOSIN program, and through Nucleu program PN 23 21 01 05, through the Extreme Light Infrastructure - Nuclear Physics (ELI-NP) Phase II, a project co-financed by the Romanian Government and the European Union through the European Regional Development Fund and the Competitiveness Operational Programme (1/07.07.2016, COP, ID 1334).
Conflicts of Interest
The authors declare no conflict of interest.
Data availability statement: The data supporting this manuscript's findings is not available in any repository. The data supporting this study's findings are available within the article.
References
- Gattass, R., & Mazur, E. (2008). Femtosecond laser micromachining in transparent materials. Nat. Photonics, 2, 219–225.
- Xu, H. , Daigle, J., Luo, Q., et al. (2006). Femtosecond laser-induced nonlinear spectroscopy for remote sensing of methane. Appl. Phys. B, 82, 655–658.
- Wang, X. , Yuan, X., & Shi, L. (2022). Optical coherence tomography—in situ and high-speed 3D imaging for laser materials processing. Light Sci. Appl., 11, 280.
- Choi, J. H. , Shin, S., Moon, Y., Han, J. H., Hwang, E., & Jeong, S. (2021). High spatial resolution imaging of melanoma tissue by femtosecond laser-induced breakdown spectroscopy. Spectrochim. Acta B, 179, 106090.
- Stachs, O. , Schumacher, S., Hovakimyan, M., et al. (2009). Visualization of femtosecond laser pulse–induced microincisions inside crystalline lens tissue. J. Cataract Refract. Surg., 35 (11), 1979–1983.
- Shvartsburg, A. B. , & Petite, G. (2002). Prog. Opt., 44. Elsevier.
- Chichkov, B. N. , Momma, C., Nolte, S., et al. (1996). Ultrashort pulsed laser processing of materials: A review. Appl. Phys. A, 63 (2), 109–115.
- Blecher, J., Palmer, T. A., Kelly, S. M., & Martukanitz, R. P. (2012). Identifying performance differences in transmissive and reflective laser optics using beam diagnostic tools. Weld. J., 91 (7), 204S–214S.
- Chouffani, K. , Harmon, F., Wells, D., et al. (2006). Laser-Compton scattering as a tool for electron beam diagnostics. Laser Part. Beams, 24 (3), 411–419.
- Tan, Y. , Lin, F., Ali, M., et al. (2023). Development of a novel beam profiling prototype with laser self-mixing via the knife-edge approach. Opt. Laser Eng., 169, 107696.
- Schäfer, B. , Lübbecke, M., & Mann, K. (2006). Hartmann-Shack wave front measurements for real-time determination of laser beam propagation parameters. Rev. Sci. Instrum., 77 (5).
- Raj, A. A. B. (2016). Mono-pulse tracking system for active free space optical communication. Optik, 127 (19), 7752–7761.
- Yura, H. T. , & Hanson, S. G. (2003). Variance of intensity for Gaussian statistics and partially developed speckle in complex ABCD optical systems. Opt. Commun., 228 (4–6), 263–270.
- Gutknecht, K., Cloots, M., Sommerhuber, R., & Wegener, K. (2021). Mutual comparison of acoustic, pyrometric and thermographic laser powder bed fusion monitoring. Mater. Des., 210, 110036.
- Ghodrati, S., Mohseni, M., & Gorji Kandi, S. (2019). Application of image edge detection methods for precise estimation of the standard surface roughness parameters. Measurement, 138, 80–90.
- Sahar, T. , Rauf, M., Murtaza, A., et al. (2023). Anomaly detection in laser powder bed fusion using machine learning: A review. Results Eng., 17, 100803.
- Omidi, P. , Najiminaini, M., Diop, M., et al. (2021). Single-shot detection of 8 unique monochrome fringe patterns representing 4 distinct directions via multispectral fringe projection profilometry. Sci. Rep., 11, 10367.
- Xu, H., Pang, G., Wang, Y., & Wang, Y. (2023). Deep isolation forest for anomaly detection. IEEE Trans. Knowl. Data Eng., 35 (12), 12591–12604.
- Imran, T. , & Hussain, M. (2018). Thermal lensing compensation in the development of 30 fs pulse duration chirped pulse amplification laser system and single-shot intensity-phase measurement. Acta Physica Polonica A., 133 (1), 28-31.
- Hussain, M. , Imran, T., & Börzsönyi, Á. (2019). Thermal lensing measurements of Ti:sapphire crystal by an optical wavefront sensor. Microw. Opt. Technol. Lett., 61 (11), 2514–2517.
- Südmeyer, T. , Marchese, S., Hashimoto, S., et al. (2008). Femtosecond laser oscillators for high-field science. Nat. Photonics, 2, 599–604.
- Sung, J. H. , Lee, H. W., Nam, C. H., et al. (2016). 100-kHz 22-fs Ti:sapphire regenerative amplification laser with programmable spectral control. Appl. Phys. B, 122, 125.
- Yoon, J. W. , Lee, S. K., Yu, T. J., et al. (2012). Broadband, high gain two-stage optical parametric chirped pulse amplifier using BBO crystals for a femtosecond high-power Ti:sapphire laser system. Curr. Appl. Phys., 12 (3), 648–653.
- Ur, C. A. , Balabanski, D., Cata-Danil, G., et al. (2015). The ELI–NP facility for nuclear physics. Nucl. Instrum. Methods Phys. Res. B, 355, 198–202.
- Ursescu, D. , Tesileanu, O., Balabanski, D., et al. (2013). Extreme Light Infrastructure Nuclear Physics (ELI-NP): Present status and perspectives. Proc. SPIE, 8780, 87801H.
- Lindeberg, T. (2024). Discrete Approximations of Gaussian Smoothing and Gaussian Derivatives. J. Math. Imaging Vis., 66 (6), 759–800.
- Sobel Operator. ScienceDirect Topics. Accessed , 2025. 7 April.
- Merlin, R. T. , Karthick, R., Babu, A. A., & et al. (2024). Abnormal events detection using spatio-temporal saliency descriptor and fuzzy representation analysis. Sci. Rep., 14, 29818.
|
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).