Artifact Detection in Hartmann–Shack Images for Ocular Wavefront Sensing
Hartmann–Shack wavefront sensors (HSWSs) are widely used for ocular aberration measurements. However, image artifacts introduced during acquisition, such as blinks and undesired reflections, can impair spot detection and lead to inaccurate wavefront reconstruction. Reliable frame selection is therefore essential to prevent corrupted measurements from propagating through subsequent processing stages. This work presents a quality-control framework for ocular HSWS images based on automatic artifact detection prior to reconstruction. Two software-based approaches are investigated: conventional image-processing techniques and lightweight pretrained deep-learning models, evaluated under both two-class (valid/invalid) and four-class (valid, blink, corneal reflection, and lens reflection) classification tasks. Among the evaluated methods, MobileNet achieved the highest numerical performance, reaching accuracies of 99.6% and 99.1% in the two-class and four-class scenarios, respectively, while keeping the average processing time below 25 ms. Real-time evaluation using the four-class MobileNet model further showed that several sudden changes in the estimation of the spherical equivalent occurred in frames classified as containing artifacts, without these changes being representative of the refractive state of the eye. These findings support the integration of the proposed framework into existing HSWS systems as a preprocessing stage before centroid estimation and wavefront reconstruction, without requiring modifications to the optical hardware.
Authors
- Mikel Aldaba (ORCID: https://orcid.org/0000-0001-5835-4395)
- Carlos Guerra (ORCID: https://orcid.org/0000-0001-7013-9938)
- Aina Turull-Mallofré (ORCID: https://orcid.org/0000-0001-7227-7429)
- Sarvenaz Kalantarinejad (ORCID: https://orcid.org/0009-0001-4514-3385)
Institutions
- Universitat Politècnica de Catalunya (ES)
Publication Details
- Journal
- Life
- Published
- 2026-11-12
- DOI
- https://doi.org/10.3390/life16111909
- Primary Topic
- Adaptive optics and wavefront sensing
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Agencia Estatal de Investigación