Introduction

Cataract is an age-related and vision-impairing disease characterized by a progressive loss of lenticular transparency, leading to a major deterioration in the retinal image quality. This condition is typically treated by replacing the crystalline lens with a foldable intraocular lens (IOL), eliminating the source of scattering while simultaneously providing a good correction for any remaining refractive errors. Traditional IOLs are monofocal with simple conic surfaces that are normally calculated for far vision, achieving almost far-emmetropic distance refraction in eyes with typical corneal shape and ocular dimensions1,2.

The postoperative optical quality of the eye is not only determined by the residual defocus, however, but also by the final amount of astigmatism and higher order aberrations (HOAs). For example, more than 0.75 diopters (D) of residual astigmatism in combination with HOAs might be visually significant, increasing blur and image degradation3,4,5. Therefore, to improve the visual quality and achieve the desired postoperative refractive outcome, it is critical to (i) individually select the appropriate IOL design and (ii) accurately calculate the IOL power and cylinder. Introducing more complex surface parameters into the IOL design allows more options to minimize corneal astigmatism and HOAs, prompting manufacturing companies to offer IOLs with complex aspherical and toric surfaces such as aspheric balance curves or transitional conic toric surfaces6,7,8. Regardless, there is still a great need to develop customized procedures for accurate IOL power calculations, especially for astigmatic correction using toric IOLs in eyes with different amounts of HOAs.

Toric IOLs are universally recommended in cataractous eyes with a corneal astigmatism higher than 1.5D, which is found in about 1 in 5 patients9. In clinical practice, many toric IOL power calculations are based on statistical regressions obtained from retrospective cases or theoretical formulas derived from paraxial optics. These approaches use axial distances and the toricity of the corneal curvature to determine the likely IOL position and its optimal power10,11,12,13,14. The refractive astigmatism after a toric IOL implantation often differs from the planned target of zero astigmatism, however, ranging between 0.3D and 1.8D in patients with regular corneal astigmatism15,16, and between 0.8D and 6.9D for the irregular corneas of patients with keratoconus17,18. This indicates that existing calculators may not always be able to accurately determine the most appropriate IOL power and cylinder values. Furthermore, complex IOL designs, such as multifocal or extended depth of focus, are ineffective in the presence of postoperative residual astigmatism or HOAs5.

Recent studies suggested another approach that selects the best possible IOL using a patient specific eye model and ray tracing. This methodology overcomes the limitations of current IOL power calculations by exploiting all information available in a corneal tomography measurement, such as the anterior and posterior corneal surface elevation instead of simplified parameters such as keratometric readings19,20,21,22,23,24. Consequently, these patient-specific models are gaining traction in the ophthalmological community. The ray tracing approach also allows predicting the postoperative refractive aberrations and retinal image quality, making it an ideal tool to calculate the interactions between the IOL power and cylinder and the natural corneal aberrations. This would help clinicians to first select the IOL type (either aspheric or toric) based on the corneal pattern, followed by choosing the right spherical and toric power while keeping the interactions between the defocus, astigmatism and HOAs in mind25,26,27.

The current study therefore proposes a ray tracing optimization (RTO) method to determine the optimal IOL power in regular and irregular corneal patterns using virtual ray tracing. To this end, the three-dimensional anterior and posterior corneal elevation data and axial distances were incorporated in custom computer eye models that allowed estimating the corneal and ocular aberrations, from which the retinal image quality could be derived. The following parameters were evaluated: (i) corneal astigmatism, (ii) corneal HOAs (e.g., spherical aberration, coma, trefoil, and secondary astigmatism) and (iii) through-focus Visual Strehl as optical quality metric. These parameters may be useful to evaluate the sphero-cylindrical correction that produced the highest visual performance in combination with different levels of HOAs and adjust current IOL calculations and surgical strategies. To our knowledge, this is the first work to report a methodology that optimizes the IOL selection to the natural higher order corneal aberrations.

Material and methods

Computational modelling

The steps of the computational modeling are illustrated in Fig. 1.

Figure 1
figure 1

Illustration of the ray tracing optimization (RTO) method for IOL power calculation. (1) Corneal input data: anterior and posterior three-dimensional corneal elevation maps (SyntEye at 36 months; #145); (2) virtual ray tracing through the anterior and posterior corneal surfaces to determine the corneal wavefront aberrations at the pupil plane and the simulated visual performance (the point spread function, PSF, and the Snellen E-letter of 30 arc-min for 4-mm pupil diameter); (3) through-focus optimization process to calculate the sphero-cylindrical correction producing the highest VSOTF (representation of the Snellen E letter for different astigmatism and defocus magnitudes); and (4) pseudophakic virtual eye.

Step 1: From corneal surfaces to wave aberration

The elevation data of both anterior and posterior corneal surfaces of 210 higher order statistical eye models for developing keratoconus (SyntEyes KTC)28 were exported as Zernike polynomial expansions to ZEMAX (Focus Software, Tucson, Arizona, USA) for ray tracing analysis using Zernike Sag Surface type as input29. Note that Zernike sag surface in ZEMAX is in Noll´s format, so conversion is required from the OSA standards. The pupil diameter was 4 mm and fitted with a 28-term (6th order) Zernike expansion. Refractive indices of 1.376 and 1.334 were used for the cornea and aqueous humor, respectively. Wave aberrations for the central 4-mm pupil diameter area were calculated for monochromatic light of 555 nm by tracing an array of collimated rays through a 2-surface model of the cornea. The point source at infinity will be best focused on the retinal surface after iteration (best focus position). Wave aberrations were computed at the entrance pupil and described in terms of either individual Zernike coefficients (Zernike Standard Coefficients in ZEMAX) or the root-mean square (RMS) of astigmatism, coma, and trefoil.

SyntEyes at 0 and 12 months after simulated onset represent normal corneal patterns, while SyntEyes at 24, 36, 48, 60 and 120 months after simulated onset characterize mid- to late-stage keratoconus, with progressively irregular corneal surfaces and corneal thinning. The synthetic developing keratoconus model was validated with clinical data in a previous publication28. The average corneal parameters of different SyntEyes groups are listed in Table 1.

Table 1 Descriptive corneal parameters: corneal power (K1 and K2 in D), corneal astigmatism (D), the root-mean square (RMS) of corneal high-order aberrations (HOAs) and the spherical aberration of the cornea (in microns, μm; 4-mm pupil diameter). Average ± standard deviation [minimum, maximum]. # represents the eye number from the previous published SyntEyes KTC models28.

Step 2 and 3: Optimize defocus and astigmatism target based on corneal aberrations

Custom routines (Matlab R2021b, The MathWorks, Inc) were developed to combine multiple sphero-cylindrical corrections with the natural corneal HOAs of each SyntEye. The sphero-cylindrical corrections were converted to lower order Zernike coefficients in the entrance pupil and added to the higher order terms (6th order, 4-mm pupil diameter). The optical quality was described in terms of the Visual Strehl of the Optical Transfer Function (VSOTF) as this metric has been shown to correlate best with logMAR visual acuity25. VSOTF was computed through-focus from + 5D to − 5D in 0.25D steps in eyes with RMS HOAs lower than 0.5 μm, and from + 10D to − 10D in 0.25D steps in eyes with RMS HOAs equal or higher than 0.5 μm. For different astigmatism corrections and orientations these ranges were from − 0.5D to − 5D in 0.25D steps (RMS HOAs < 0.5 μm) or from − 0.5D to − 10D in 0.25D steps (RMS HOAs ≥ 0.5 μm) for the astigmatism power, and from 0° to 175° in 5° steps for the orientation. The targeted defocus and astigmatism producing the maximum VSOTF was considered as the optimal sphero-cylindrical correction for a specific cornea. In addition, we analyzed the VSOTF that fully compensates the defocus and astigmatic terms (“zero target”) as a reference. The visual benefit was defined as the Visual Stehl of the optimized method (VSOTFoptim) divided by the zero-target Visual Strehl (VSOTFzero).

Step 4: Customized eye models: ray tracing optimization (RTO) method for IOL power calculation

Based on the optimized refractive target from the previous step, the wavefront aberrations and residual refraction were calculated in the 4-surface model (4-mm pupil diameter), containing the anterior and posterior corneal surfaces, the shape of the IOL (assuming perfect centration and no lens tilt), the estimated lens position (i.e., anterior chamber depth + 0.3 times the lens thickness) and the axial length of the SyntEye. The IOL considered was the Precizon Toric IOL (OPHTEC BV, Groningen, The Netherlands) with a refractive index of 1.46. The resulting sphero-cylindrical correction producing the highest VSOTF was considered as the refractive target for IOL selection. Finally, the IOL power, cylinder and axis that matched the optimal sphero-cylindrical correction within 5% of the refractive error was selected.

Data analysis

The ray tracing optimization (RTO) method for IOL power calculations were compared with the IOL power and cylinder calculated using the Saunders–Retzlaff–Kraff theoretical (SRK/T) formula using the A-constant of 118.6 recommended by the manufacturer. The Zernike defocus and astigmatism coefficients of the eye models were converted into power vectors (spherical equivalent M and Jackson cross-cylinders J0 and J45) to obtain the sphero-cylindrical notation of the refractive state. Finally, the tolerance of both methods to potential variations in IOL plane position (± 0.5D of defocus) and IOL rotation (± 5°) was also determined. For all analyses, the statistical significance was defined at p < 0.05. The prediction error was analyzed statistically using paired 2-tailed t test.

Ethics declarations

The author(s) have made the following disclosure(s): P.P.-M.: Co-founder at 2 Eyes Vision, SL, outside of the current study. J.A.: Consultant for Staar Surgical, Johnson & Johnson and Alcon Laboratories, outside of the current study. A.V.Q.: CTO and co-founder at Azalea Vision, outside of the current study. J.J.R.: None.

Results

Effect of optimization

The through-focus optimization leads to a gradual improvement in VSOTF as the sphero-cylindrical correction approaches the optimal value (Fig. 2). It does so differently for the zero-target and the optimized sphero-cylindrical corrections, which has consequences for the simulated visual performance (Fig. 3). In mid- to late-stage keratoconus with an irregular cornea (i.e., from 24 to 120 months after simulated onset), the optimized defocus and astigmatism corrections outperformed the zero-target correction due to the amount of residual HOAs.

Figure 2
figure 2

Through-focus Visual Strehl (VSOTF) for representative examples of each SyntEye group: uncorrected cornea (red), zero-target (grey) and optimized (light blue).

Figure 3
figure 3

Theoretical simulations of 30 arc-min Snellen E-letters (4-mm pupil) for representative examples of each SyntEye group. Left column: convolved letter with the astigmatism and natural aberrations of the cornea. Middle column: convolved letter after full cancellation of defocus and astigmatism. Right column: convolved letter with the sphero-cylindrical correction that produced the best optical quality (peak Visual Strehl).

Figure 3 illustrates the simulated visual performance of the residual aberrations at the pupil plane for natural corneal astigmatism, zero-target correction and optimized-target using a convolved Snellen E letter (30 arc-min, 4-mm pupil) in seven representative examples: (a) SyntEyes 0 months (RMS HOAs: 0.11 μm), (b) SyntEyes 12 months (0.14 μm), (c) SyntEyes 24 months (0.41 μm), (d) SyntEyes 36 months (0.63 μm), (e) SyntEyes 48 months (0.72 μm), (f) SyntEyes 60 months (0.64 μm) and (g) SyntEyes 120 months (0.90 μm). These examples show that RTO generally produced the highest VSOTF and a higher visual quality.

Looking at the visual benefit of the optimized correction in all SyntEyes, it is seen that corneas with more HOAs and a lower VSOTFzero experienced a greater visual improvement with the RTO method (Fig. 4). This is also seen in Table 2, where it is shown that the percentage of eyes above the threshold for acceptable vision (i.e., VSOTF ≥ 0.12)25 is considerably higher for the RTO method.

Figure 4
figure 4

VSOTF (zero defocus and astigmatism) vs. Visual benefit, defined as VSOTF (optimized defocus and astigmatism) divided by VSOTF (zero defocus and astigmatism).

Table 2 Optimized refractive target, visual benefit and comparison between the zero-target and optimized methods (average ± standard deviation [minimum, maximum]).

IOL power calculation: estimation error

Once the optimized sphero-cylindrical corrections were available, they were introduced into the ray tracing optimization (RTO) IOL power calculation method. This leads to IOL powers ranging between 11.0 and 26.5D for the normal SyntEyes (0–12 months simulated progression) and 1.0–27.5D for the keratoconic SyntEyes (≥ 24 months simulated progression). The range on the cylinder corrections were 0.0–2.5D and 0.0–10.0D, respectively.

Considered over all SyntEyes, the RTO method significantly increased the peak VSOTF from 0.15 ± 0.15 (original data: corneal astigmatism and HOAs) and 0.22 ± 0.24 (zero-target method) to 0.27 ± 0.22 (p < 0.001). The same was seen in each individual SyntEyes group (p < 0.001). Note that as the degree of keratoconus increased the differences between the original corneal data and the zero-target gradually became non-significant (Fig. 5, bottom row), highlighting the importance of taking the HOAs into account when estimating the IOL power and cylinder.

Figure 5
figure 5

VSOTF magnitude for the original data (corneal astigmatism and HOAs, in red), zero target condition (zero defocus and astigmatism, in grey) and optimized calculation (sphero-cylindrical correction combined with the natural amount of HOAs, in light blue) and tolerance to ± 0.5D of defocus (zero target condition and optimized calculation).

To test the stability of the optimized and zero-target corrections, an artificial defocus of ± 0.5D was induced. In both cases this led the VSOTF to decrease compared to the in-focus case (Fig. 5). For SyntEyes with few HOAs the loss in VSOTF was similar for both correction methods, but for the higher amounts of HOAs in moderate and advanced keratoconus the VSOTF of the optimized correction reduced significantly less than that of the zero-target correction (p < 0.001).

Figure 6 shows the influence of IOL rotation in Visual Strehl in those eyes with a different cylinder target (zero-target vs. optimized target) in the calculation, which would have a different tolerance to rotation. The analysis includes 94 of 210 eyes: 15 SyntEyes at 24 months, 22 SyntEyes at 36 months, 18 SyntEyes at 48 months, 18 SyntEyes at 60 months and 20 SyntEyes at 120 months. The impact of a potential toric IOL rotation (± 5 degrees) in visual degradation is much lower than the degradation induced by defocus (optimized vs. optimized rotated) and we found that on average the Visual Strehl after IOL rotation was higher (p < 0.001) than the Visual Strehl calculated with zero defocus and astigmatism as the final refractive target.

Figure 6
figure 6

Tolerance to toric IOL rotation: VSOTF magnitude for the optimized calculation and zero target condition (zero defocus and astigmatism).

Ray tracing optimization (RTO) vs. SRK/T

The refractive target provided by the RTO and SRK/T shows a very good agreement in eyes with regular astigmatism and a low amount of HOAs (SyntEyes 0 and 12 months; Fig. 7a), where 91.66% of eyes agreed within ± 0.5D in IOL power calculation. For these groups, 26.66% of eyes will require a toric IOL implantation and only one eye would benefit from an optimized cylinder adjustment to obtain best visual performance.

Figure 7
figure 7

Difference in residual refractive error between RTO and SRK/T expressed as power vectors M, J0 and J45. (a) Regular astigmatism: Normal—SyntEyes 0 and 12 months; (b) irregular astigmatism and HOAs: SyntEyes with simulated progression of 24 and 36 months (mid-stage KC); (c) irregular astigmatism and higher amount of HOAs: SyntEyes with simulated progression of 48, 60 and 120 months (late-stage keratoconus).

Most SyntEyes with higher amounts of HOAs would need an optimization in power, cylinder and axis to achieve the best possible visual result (Fig. 7b,c) since only 21.05% of SyntEyes (simulated progression of 24 and 36 months, mid-stage KC) and 15.06% of SyntEyes (48, 60 and 120 months progression, late-stage KC) showed an agreement within ± 0.5D between RTO and SRK/T. For these cases, the power difference exceeded 3D in 42.10% (SyntEyes 24 and 36 months) and 42.46% (SyntEyes 48, 60 and 120 months), while the cylinder required adjustments larger than 3D in 12.28% and 24.65% of the cases, respectively. More than 80% of SyntEyes with 24–120 months of progression required a toric IOL to obtain best visual performance, especially those with larger amounts of corneal higher order aberrations. In 20/210 SyntEyes the IOL and/or cylinder power were not available in the Precizon toric catalogue, particularly eyes with an RMS HOAs higher than 1.1 μm (4-mm pupil) and corneal astigmatism higher than 5D. Those cases were excluded from this analysis.

Discussion

Current methods of IOL power calculation generally fail in patients with irregular corneas, such as keratoconus or after corneal refractive surgery, because they rely on assumptions about the corneal shape or estimated lens position that may lead to postoperative refractive surprises1,2,30,31,32,33. One reason for this shortcoming is that IOL power calculations generally aim at minimizing the residual refractive error. The analyses above suggest that this may not always be ideal, however, since the position of best focus is influenced by corneal astigmatism and higher order aberrations, especially in keratoconus or after corneal refractive surgery. It may therefore be expected that such eyes could benefit from an optimized refractive target based on the three-dimensional shape of the anterior and posterior corneal surfaces, rather than simplified parameters such as keratometry34,35,36.

This work introduced such a customized IOL selection based on virtual ray tracing, keeping in mind that certain amounts of lower and higher order aberrations may interact favourably to improve visual performance by enhancing the IOL selection and prediction of the refractive outcome25,26,27. Our results suggest that the ray tracing optimization (RTO) method provides the greatest benefits for corneas with larger amounts of higher order aberrations, with 0.35 μm for a 4-mm pupil diameter (corresponding to 0.95 μm for a 6-mm pupil) as the RMS HOAs threshold for a manifest improvement in the IOL power calculation.

Our analysis expands those of previous ray tracing modules for IOL power calculation, such as e.g., Olsen’s PhacoOptics (IOL Innovations ApS, Aarhus, Denmark) or Okulix (Okulix, Dortmund, Germany) that model the IOL to determine the effective focal length matching the axial length (i.e., zero-target). Given the generally asymmetric nature of corneal topography in keratoconus and in post-refractive surgery eyes, the use of higher-order Zernike coefficients seems better suited for an optimized analysis as their orthogonality permits calculating the refractive power vectors. Furthermore, Visual Strehl, an optical quality descriptor that combines the impact of the optical aberrations with a measure of neural performance, is a good optical predictor of visual acuity25.

Pseudophakic eyes have the distinct advantage that they are easier to model than phakic eyes, since the refractive index and curvatures of the IOL are known—at least to the manufacturer, who are rarely willing to share these details—but also present a challenge as the residual refraction depends in part on the postoperative IOL alignment and position8, which in turn is determined by the capsular healing process. To this end, we analyzed the impact of a potential shifts and rotations away from the anticipated IOL position and orientation, which demonstrated a higher tolerance to loss in VSOTF for the RTO method compared to zero-target.

Previous studies showed that using traditional formulas will bring only 26–35% of eyes to within 0.5D of the targeted astigmatism in regular corneas37, with a post-operative residual astigmatism of − 0.64 ± 0.43D15, − 0.71 ± 0.43D16 and − 1.03 ± 0.79D38. Other studies described that IOL power calculation is considerably less accurate in keratoconus than in typical eyes17,18,30. The SRK/T formula showed the highest accuracy for IOL power calculation in patients with moderate keratoconus, but only 36–44% of eyes achieved a result within 0.5D of the final predicted refraction17,39. To improve the refraction prediction in eyes with keratoconus, two dedicated formulas were developed, Kane keratoconus30 and Holladay 2 with keratoconus adjustment31. Although the Kane formula provided more accurate predictions compared with the Holladay method (50%-Kane vs. 27.4%-Holladay of eyes within 0.5 D), the predictability of the formula is lower than in normal eyes and requires further refinement, particularly in moderate and advanced stages with high levels of corneal aberrations. This underlines once more the need for new IOL calculation strategies.

One of the limitations of our study is that the computational processing time per eye was long since it requires the evaluation of multiple possible sphero-cylindrical corrections to determine the final IOL power and cylinder (e.g., 40 min per eye for eyes with RMS HOAs > 0.5 μm, 4-mm pupil). Another aspect is that the analysis used SyntEyes instead real eyes. SyntEyes for normal eyes and developing keratoconus were previously validated with real eyes28 and offer a complete database of anterior and posterior corneal elevation points with increasing high-order corneal irregularities. This model for keratoconus progression allows the development of realistic personalized eye models to simulate how an increasing magnitude higher order corneal aberrations affects the final IOL power and cylinder selection. The analysed HOAs were also encountered clinically29 and the methodology could be directly translated into a clinical application by using the anterior and posterior raw elevation data of commercial corneal tomography devices.

Multiple studies described the excellent repeatability and reproducibility of corneal topography measurements provided by different types of imaging systems40,41,42,43. There is some kind of controversy, however, about the reported repeatability for some corneal parameters after corneal refractive surgery44, as well as in patients with dry eye45, keratoconus46 and patients at the typical age for cataract47. The statistical uncertainty of the elevation measurements also increases toward the peripheral area, but the central 6-mm region may be considered as reliable48,49,50,51. This was confirmed by Guirao and Artal52, who described an RMS error of 0.05 μm (4-mm pupil) and 0.2 μm (6-mm pupil) for the estimation of the corneal wave aberration from corneal elevation data. SyntEyes assume a corneal diameter of 6.5 mm, which only marginally larger than this region.

Hence, the choice of the 4-mm central region will potentially allow (i) acquiring more reliable corneal elevation data (i.e., fewer missing data points due to eyelids, etc.), (ii) increasing the accuracy of the estimated corneal wavefront aberrations52, (iii) reducing measurements errors due to blinking, eye movements, poor centration or alignment49, and (iv) targeting possible measurements of keratoconus patients with intracorneal ring segments, avoiding the measurement distortions introduced by the segment itself29. Besides, the typical pupil diameter is around 4 mm in 50 and 79 year-olds for a luminance level of approximately 220 cd/m253, the surface design of most IOL models are optimized for a pupil size of 4–5 mm54,55 and retinal image blur caused by diffraction is negligible when compared to the effects of aberrations for pupil diameters greater than approximately 3–4 mm56.

In conclusion, the proposed ray tracing optimization method incorporates the interactions between corneal aberrations and the IOL design, allowing for realistic simulations of defocus, astigmatism, and higher-order aberrations, to accurately calculate the required IOL power and cylinder. Such patient-specific IOL selection based on virtual ray tracing has great potential, but still needs prospective clinical validation with real cataract patients.