Projects / Laser metrology
Capability · Laser metrology · Statistics

Automated Beam-Quality Analysis

Thousands of beam images turned into answers: does each shot meet each requirement, how is the laser trending, and how rare is the worst case? I build automated ISO 11146 beam analysis, requirement-traceable compliance consoles and tail statistics.

The problem

Beam profilers produce far more images than anyone can review. Spot checks hide slow drift, and a limit that must hold for nearly every shot can't be verified by simply counting a few thousand samples.

What I build

Pipelines that compute standard beam parameters shot by shot, check them against each numbered requirement, flag trends, and estimate rare-event levels with proper statistics, packaged as tools a test technician can run.

This demonstration

Client work stays confidential, so everything below was built from scratch on synthetic images generated from textbook beam models, then tested against the known right answers.

96known test beams in validation
0.08%mean diameter error
0.58%worst-case diameter error
120shots in the synthetic sequence
0.1%error at a 1-in-3,333 tail level
Demonstration

Watching a synthetic beam degrade, shot by shot

The beam starts as a clean Gaussian, then slowly becomes elliptical, drifts off its reference point and gains higher-order content. Every number is computed from the image.

All data is synthetic. The white ellipse is the measured D4σ beam, and the crosses mark the reference and the measured centroid. Dashed red lines are illustrative limits.
Compliance

Every result traces to a numbered requirement

The automated report for the synthetic sequence, against illustrative limits.

IDRequirementLimitShots passingFirst failure
BQ-1Beam diameter D4σ (x and y)68–92 px71 of 120Shot 72
BQ-2Ellipticity (ISO 11146 circular limit)≥ 0.8762 of 120Shot 63
BQ-3Gaussian agreement R²≥ 0.97120 of 120None
BQ-4Pointing error from reference≤ 8 px91 of 120Shot 89

BQ-3 passes every shot while the others fail. An elliptical beam can still fit an elliptical Gaussian well, which is why one figure of merit is never enough.

Tail statistics

Estimating the worst case you didn't sample

A requirement on the 99.97th percentile has little direct evidence in a few thousand shots, because only about one sample lies beyond it. Fitting a Generalized Pareto distribution to the largest values uses the whole tail.

On 3,000 synthetic shots from a distribution with a known answer of 8.06 px, the tail fit gave 8.05 px. The raw sample percentile gave 7.96 px.

Log-scale exceedance plot showing synthetic data, a Generalized Pareto tail fit and the true distribution in close agreement
The tail fit tracks the true distribution beyond the range where individual samples become unreliable.
Technical depth

For the engineers in the room

ISO 11146 second-moment analysis
  • Baseline taken from the image border and subtracted, because second moments weight the noisy wings heavily
  • Integration window iterated to convergence around the beam, sized from the current width estimate
  • Centroid, σ²x, σ²y and σ²xy give D4σ in x and y, principal-axis diameters, azimuth and ellipticity
  • Encircled-energy diameter (D86) from the radial cumulative energy around the centroid
Validation against known answers
  • 96 synthetic beams across a grid of widths from 20 to 55 px, two orientations and random positions
  • Each image includes photon noise, read noise and a camera baseline
  • Ellipticity error stayed under 0.004 in every case
Why analysis tools need ground truth
  • A metric that can't be tested against a known answer can't be defended in a customer review
  • Synthetic beams let each step be checked alone, before real data is involved
  • The same pipeline structure accepts real profiler files on a client's own data
Applying it to your program

From images to a defensible report

  • Automated acceptance testing and production yield analysis
  • Requirement interpretation and traceable compliance reporting
  • Root-cause analysis from shot-to-shot trends
  • Statistical confidence for limits that apply to nearly every shot
  • Low-cost laser spot alignment checks
Technology

Stack

PythonNumPySciPyMatplotlibOpenCVISO 11146Extreme-value statistics

Drowning in beam images?

I can turn them into answers your team and your customer can trust.

Start a conversation

← Back to all projects