Victor Antonio Kuiava1; Eliseu Luiz Kuiava2; Eduardo Ottobeli Chielli3; Diane Marinho Ruschel1; Samara Bárbara Marafon1
DOI: 10.5935/0004-2749.2024-0083
ABSTRACT
PURPOSE: We developed an artificial intelligence program for calculating intraocular lenses and analyzed its accuracy rate via ultrasonic biometry. This endeavor is aimed at enhancing precision and efficacy in the selection of intraocular lenses, particularly in cases where optical biometry is unavailable.
METHODS: Data was collected from the Hospital de Clínicas de Porto Alegre, which included cases of phacoemulsification with intraocular lens implantation, in which the lens selection was based on ultrasonic biometry. The program, implemented in Python, Java, and PHP, employs the ridge regression method. Two design options were developed: a basic model, which uses only keratometry variables (K1 and K2), axial size and final target refraction in the spherical equivalent, and an advanced model, which incorporates preoperative refraction and the patient's age. The Universal Barrett II formula was used to compare both models.
RESULTS: The sample consisted of 486 eyes from 313 patients, with 350 eyes used for program training and 136 for program validation. The spherical equivalent hit rates, with a variation of ±0.5 D, were 86% and 87.5% for the basic and advanced models, respectively, with no statistically significant difference between them. With the Barret Universal II formula, the success rate was 69%, which was significantly different from the values of the two aforementioned models (p<0.0001). The system was better for medium and long eyes but worse for short eyes (<=22.00 mm).
CONCLUSION: The developed artificial intelligence program was superior to the Barrett formula in terms of performance, in the general context and within the subgroup of patients with longer eyes. This innovation can considerably contribute to the selection of intraocular lenses, particularly in cases where optical biometry is unavailable.
Keywords: Biometry; Intraocular lens; Cataract; Artificial intelligence
INTRODUCTION
Cataract is one of the leading causes of reversible visual blindness worldwide, particularly in developing countries(1-4). Cataract surgery involves the removal of the opaque lens and the implantation of an intraocular lens (IOL). A crucial element in this process is the selection of the IOL power. The selection of the dioptric power of the IOL is crucial for improving the quality of life, increasing autonomy, and reducing the cost of purchasing glasses(5-7).
Traditionally, IOL calculation formulas have been based on static biometric measurements, such as the axial length of the eye and corneal curvature(8). However, the advancements in artificial intelligence (AI) programming and the evolution of traditional IOL calculation formulas have led to considerable improvements in IOL calculation formulas through the use of optical biometry.
Optical biometers are high-cost equipment and are not always available in ophthalmic centers in developing countries, where ultrasound biometers are mostly still used to determine axial eye size(9,10). In this context, AI has emerged as a revolutionary ally to ophthalmology, particularly for better characterization of the data of a specific population in a particular hospital. The ability of AI to analyze large datasets, learn complex patterns, and dynamically adapt to the unique characteristics of each patient has driven the development of programs(11,12).
There are numerous examples of AI applications in medicine, including the histological identification of breast neoplasms and skin tumors(11,12). In ophthalmology, they facilitate the identification of lesions in the fundus of the eye in retinography examinations(13). Formulas that use AI have high reliability in postsurgical results(8,14,15).
These programs use advanced algorithms, neural networks, and machine learning techniques to process a diverse array of biometric data, ensuring a personalized and precise calculation of IOL power specifically tailored for distinct populations in various regions worldwide(9). In addition, the AI program can be designed to conduct mathematical regressions, assisting in the selection of IOLs for patients undergoing cataract surgery evaluations via ultrasound biometry.
The present study aimed to develop an AI program for calculating IOLs and to conduct an in-depth analysis of its accuracy rate via ultrasonic biometry. This endeavor is aimed at enhancing precision and efficacy in the selection of IOLs, especially in cases where optical biometry is unavailable.
METHODS
This retrospective and observational study included 350 eyes, of which 136 were used for the validation of adult patients who underwent phacoemulsification surgery at the Hospital de Clínicas de Porto Alegre between March 2021 and December 2023. The data were obtained from the surgical outcomes of four cataract surgeons. The sample consisted of patients treated within this timeframe. The inclusion criteria were as follows: age over 18 years, patients undergoing phacoemulsification surgery who had preoperative assessment for IOL selection via ultrasound biometry, IOL implantation in the capsular bag, a minimum of 30 days of postoperative ophthalmological follow-up, hydrophobic three-piece IOL implantation (MA60AC, Alcon, USA), and postoperative corrected visual acuity of 20/30 (0.6) or better with refraction between 30 and 90 days postoperatively.
The exclusion criteria were missing data on keratometry, axial length, IOL used, or postoperative refraction; history of combined surgeries, such as vitrectomy, corneal transplant, or trabeculotomy; intraoperative complications, such as posterior capsule rupture, vitreous loss, and zonular weakness requiring capsular tension rings; inability to implant the IOL in the capsular bag; or postoperative complications, such as endophthalmitis, significant biometric error necessitating IOL exchange, or conditions like dry eye, blepharitis, and corneal scarring.
The patients' medical records from March 2021 to December 2023 were reviewed, and the data collected included age, preoperative static or dynamic refraction, preoperative visual acuity, keratometry, axial length, IOL used, preoperative spherical equivalent, postoperative static or dynamic refraction, and corrected postoperative visual acuity. Axial length was measured via ultrasonic biometry (AL-100, Tomey, Japan). Furthermore, keratometry was performed in all patients (VISUREF 100, Humphrey Zeiss, Germany). The same IOL model (MA60AC, Alcon, USA) was used in all patients. Measurements were performed by an experienced operator, applying minimal pressure to avoid or minimize any impact on the axial length. The average of three high-quality measurements was calculated.
The AI program was developed using Python, Java, and PHP. In addition, a ridge regression formula was established using Python programming (Table 1).
The standard ridge regression formula with regularization in Python programming is as follows:
J(β) = ∑(i=1 to n) (y_i - (β0 + ∑(j=1 to p) βj * x_ij))^2 + λ * ∑(j=1 to p) βj^2
The collected data were randomized, and two groups were established: one with 75% of the data for the formulation of the program's database and the second group with 25% for statistical evaluation (Figure 1).
The formula uses two regression models: a basic model that uses keratometry variables, axial size and desired spherical equivalent and an advanced model that incorporates preoperative refraction and patient age.
Statistical analysis was conducted by comparing the values of spherical equivalents found, those described in the medical records, and those expected by the Barrett Universal II formula through the input of keratometry and axial length data. The evaluation considered errors in spherical equivalents greater than 0.5, 1, and 1.5 D.
For an interactive and practical user interface, the development of a website for utilizing the mathematical formula was proposed. The program was named aiLIO (AI IOL).
The data were tabulated in Google Sheets and were later used in the analysis using GraphPad Prism 10.1.2. Calculations were used to determine whether the data were parametric or nonparametric, with the t-test used for the former calculations and the Mann–Whitney U test for the latter calculations(16).
The Shapiro–Wilk test was employed to evaluate the normality of the data subsets, and all variables were found to have a nonparametric distribution.
RESULTS
This study included 486 eyes from 313 patients, with 350 eyes used for program training and 136 for program validation. The mean age of the patients was 72 years. Of them, 142 were men and 171 were women. In the database group, the mean axial was 23.19 mm, with a mean keratometry of 43.86 D, a minimum of 39.6 D, and a maximum of 48.6 D. In the test group, the mean axial length was 23.27 mm, with a mean keratometry of 43.92 D, a minimum of 40.1 D, and a maximum of 48.87 D (Table 2).
Other regression models were developed using linear regression, logarithmic regression, decision tree, and elastic net regression. However, these models did not yield satisfactory results or encountered errors during the program development; thus, they were not elaborated for the program development.
In the statistical analysis, the advanced aiLIO achieved an accuracy of 87.5% within +/−0.5 D, the basic aiLIO achieved 86%, whereas the Barrett Universal II formula achieved 69%. No statistically significant difference was observed between the two versions of the program (p=0.99). When the program was compared with the Barrett Universal II formula, a statistically significant difference was observed in terms of the total number of spherical equivalent errors (p<0.0001), with fewer refractive errors with the new formula (Figure 2 and Table 3).
In the subgroup analysis of long eyes (>=24.00 mm), no significant difference was observed between the two versions of aiLIO (p=0.96), but there was when compared with the Barrett Universal II formula. The advanced aiLIO achieved an accuracy of 76.9% (p<0.0001), the basic aiLIO achieved 80.7% (p<0.0001), whereas the Barrett Universal II formula achieved 65% (Figure 3).
In short eyes (≤22.00 mm), no difference was observed between the two versions of aiLIO (p=0.98); however, the Barrett Formula was found to be better in calculating short eyes, achieving an accuracy of 50% (p<0.05) (Figure 4).
Regarding the esthetic aspect of the program, an intuitive and simple layout was created using JAVA for ease of use. A system was implemented to convert "," to "." for calculation within the system. The postoperative refractive target values were placed in a testbed session ranging from +1.00 to −2.00, with intervals of 0.5 D. The results are presented in the lower table, where the only rounded value is the suggested lens value (Figure 5).
An example of the calculation of the dioptric power of an IOL is presented in figure 5, where a 69-year-old patient with a refraction of 2.00 1.00 at 180º, corneal curvature of 43.00 × 44.50, axial length of 23.80 mm, and a desired postoperative refractive result of −0.50, the best lens choice would be a +20.00 lens.
DISCUSSION
The present study aimed to develop an AI program specifically designed for calculating IOLs and to conduct an in-depth analysis of its accuracy via ultrasonic biometry. This endeavor is aimed at enhancing precision and efficacy in the selection of IOLs, particularly in cases where optical biometry is unavailable. The thorough investigation sought to elucidate the potential of the AI program in providing reliable estimated and optimizing the surgical planning process in clinical settings lacking optical biometry resources, thereby establishing new paradigms of technological innovation in modern ophthalmology.
We herein developed a ridge regression program using AI. This program outperformed the Barrett formula in terms of overall performance in the general context and within the subgroup of patients with longer eyes. However, it exhibited inferiority for shorter eyes. IOL calculation in short eyes presents unique challenges in terms of the effective positioning of the IOL, measurement of the depth of the anterior chamber of the eye, and the likelihood of steeper corneas(10,17).
Furthermore, due to the stringent criteria applied in the patient selection, the study included only a limited number of patients with extreme axial lengths, particularly those with short eyes (≤22.00 mm), totaling 35 eyes.
The simplicity of the input data in our developed formula is advantageous, considering its widespread applicability and efficacy in ophthalmology services globally(10). All the values required for calculation are fundamental and readily accessible through routine ophthalmic consultations and the use of keratometry and biometry devices.
While additional parameters, such as the depth of the anterior chamber of the eye, lens thickness, white-to-white ratio, and effective lens position, are indeed valuable for IOL calculation(10), their absence in the medical records posed a challenge. Consequently, these parameters were not included as mandatory data in the development process. The absence of these data was due to the retrospective nature of the study, as it relies on the accurate documentation of all values in the patients' medical records.
Ultrasonic biometrics can be used in two different modalities: contact or immersion. Immersion is preferred because the probe of the device does not come into direct contact with the cornea, thereby minimizing the risk of indenting the cornea and underestimating the axial length of the eye.
Ultrasound and optical biometries are comparable under ideal conditions, exhibiting minimal differences in the results between the two methods(9). At present, considerable efforts are directed toward the development and refinement of automated optical biometry devices so as to enhance the precision of calculating premium lenses.
This study provides a significant advantage by improving calculation accuracy for IOL services in ophthalmology settings lacking access to optical biometers and solely relying on ultrasound biometry. This is particularly crucial as it ensures that patients, even in resource-constrained settings, receive precise calculations for their cataract surgeries and other ophthalmic interventions.
In conclusion, this study developed an advanced AI program that leverages ultrasonic biometry to accurately calculate IOL power, which demonstrated considerable superiority to the Barrett Universal II formula in terms of performance, particularly for eyes with standard and long axial lengths. Despite the limitations faced with short eyes and the retrospective nature of data collection, this AI-driven program provides a robust solution for clinical settings where optical biometry is unavailable, thereby enhancing precision in surgical planning. In addition to its ability to deliver precise refractive predictions, the program's intuitive design highlights its potential as a transformative tool in the field of ophthalmology, ensuring that even resource-constrained environments can achieve reliable outcomes in cataract surgeries and other ophthalmic procedures. This advancement not only broadens the scope of IOL calculations but also sets a precedent for future innovations integrating AI in medical technologies.
REFERENCES
1. Fernández-Vigo JI, Serrano González-Peramato MT, Nunila Gómez-de-Liaño C, Sánchez-Guillén I, Fernández-Vigo JÁ, Macarro-Merino A. Glistening on intraocular lenses: A review. Arch Soc Esp Oftalmol (Engl Ed). 2023;98(9):493-506.
2. Delbarre M, Froussart-Maille F. [Sémiologie et formes cliniques de la cataracte chez l'adulte (Signs, symptoms, and clinical forms of cataract in adults)]. J Fr Ophtalmol. 2020;43(7):653-659. French.
3. Gali HE, Sella R, Afshari NA. Cataract grading systems: a review of past and present. Curr Opin Ophthalmol. 2019;30(1):13-18.
4. Lee CM, Afshari NA. The global state of cataract blindness. Curr Opin Ophthalmol. 2017;28(1):98-103.
5. Dick HB, Gerste RD. Future Intraocular Lens Technologies. Ophthalmology. 2021;128(11):e206-e213.
6. Chung J, Bu JJ, Afshari NA. Advancements in intraocular lens power calculation formulas. Curr Opin Ophthalmol. 2022;33(1):35-40.
7. Lapp T, Wacker K, Heinz C, Maier P, Eberwein P, Reinhard T. Cataract surgery-indications, techniques, and intraocular lens selection. Dtsch Arztebl Int. 2023;120(21):377-86.
8. SANTOS, Mateus Lins dos. Modelos computacionais baseados em inteligência artificial e estatística para o apoio à decisão médica na escolha das fórmulas biométricas em catarata. 2022. 103 f. Dissertação (Mestrado em Modelagem Computacional do Conhecimento) - Instituto de Computação, Universidade Federal de Alagoas, Maceio; 2021.
9. Khorrami-Nejad M, Khodair AM, Khodaparast M, Babapour Mofrad F, Dehghanian Nasrabadi F. Comparison of the ocular ultrasonic and optical biometry devices in the different quality measurements. J Optom. 2023;16(4):284-95.
10. Sramka M, Slovak M, Tuckova J, Stodulka P. Improving clinical refractive results of cataract surgery by machine learning. PeerJ. 2019;7:e7202.
11. Kuiava VA, Kuiava EL, Rodriguez R, Beck AE, Rodriguez JPM, Chielle EO. Method of histopathological diagnosis of mammary nodules using a deep learning algorithm. J Bras Patol e Med Lab. 2019;55(6):620-5.
12. Kuiava VA, Kuiava EL, Chielle EO, De Bittencourt FM. Artificial intelligence algorithm for the histopathological diagnosis of skin câncer. Clin Biomed Res. 2020;40(4):218-22.
13. Kuiava VA, Kuiava EL, Chielle EO, Syllos R. (2021). "Desenvolvimento de sistema estruturado com inteligência artificial para apoio no diagnóstico de patologias oftalmológicas mais relevantes". Clinical and Biomedical Research. 2021, v. 41, n. 1.
14. Ladas JG, Siddiqui AA, Devgan U, Jun AS. A 3-D "Super Surface" combining modern intraocular lens formulas to generate a "Super Formula" and maximize accuracy. JAMA Ophthalmol. 2015;133(12):1431-6.
15. Savini G, Di Maita M, Hoffer KJ, Næser K, Schiano-Lomoriello D, Vagge A, et al. Comparison of 13 formulas for IOL power calculation with measurements from partial coherence interferometry. Br J Ophthalmol. 2021;105(4):484-9.
16. Kuiava EL, Kuiava VA, Chielle EO, Navarini D. Sistema computacional automático para geração de relatórios epidemiológicos a partir de dados do datasus. Braz J Health Rev. 2020;3(6):17549-58.
17. Hoffer KJ. Biometry of 7,500 cataractous eyes. Am J Ophthalmol. 1980;90(3):360-8.
AUTHORS' CONTRIBUTIONS:
Significant contribution to conception and design: Victor Antonio Kuiava; Eliseu Luiz Kuiava. Data acquisition: Victor Antonio Kuiava; Diane Marinho Ruschel; Samara Bárbara Marafon. Data analysis and interpretation:Victor Antonio Kuiava; Eduardo Ottobeli Chielli. Manuscript drafting: Victor Antonio Kuiava; Eliseu Luiz Kuiava; Eduardo Ottobeli Chielli; Diane Marinho Ruschel; Samara Bárbara Marafon. Significant intellectual contente revision of the manuscript: Victor Antonio Kuiava; Eliseu Luiz Kuiava; Eduardo Ottobeli Chielli; Diane Marinho Ruschel; Samara Bárbara Marafon. Final approval of the submitted manuscript: Victor Antonio Kuiava; Eliseu Luiz Kuiava; Eduardo Ottobeli Chielli; Diane Marinho Ruschel; Samara Bárbara Marafon. Statistical analysis: Victor Antonio Kuiava; Eduardo Ottobeli Chielli. Obtaining funding: not applicable. Supervision of administrative, technical, or material support: Eduardo Ottobeli Chielli; Diane Marinho Ruschel; Samara Bárbara Marafon. Research group leadership: Diane Marinho Ruschel.
Submitted for publication:
March 19, 2024.
Accepted for publication:
December 16, 2024.
Approved by the following research ethics committee: Hospital de Clínicas de Porto Alegre (CAAE: 76943524.0.0000.5327).
Funding: This study received no specific financial support.