Skip to main content
Scientific Data logoLink to Scientific Data
. 2024 Jun 13;11:627. doi: 10.1038/s41597-024-03464-0

An AS-OCT image dataset for deep learning-enabled segmentation and 3D reconstruction for keratitis

Yiming Sun 1,#, Nuliqiman Maimaiti 1,#, Peifang Xu 1,✉, Peng Jin 2, Jingxuan Cai 3, Guiping Qian 4, Pengjie Chen 1, Mingyu Xu 1, Gangyong Jia 2, Qing Wu 2, Juan Ye 1,✉
PMCID: PMC11176413  PMID: 38871784

Abstract

Infectious keratitis is among the major causes of global blindness. Anterior segment optical coherence tomography (AS-OCT) images allow the characterizing of cross-sectional structures in the cornea with keratitis thus revealing the severity of inflammation, and can also provide 360-degree information on anterior chambers. The development of image analysis methods for such cases, particularly deep learning methods, requires a large number of annotated images, but to date, there is no such open-access AS-OCT image repository. For this reason, this work provides a dataset containing a total of 1168 AS-OCT images of patients with keratitis, including 768 full-frame images (6 patients). Each image has associated segmentation labels for lesions and cornea, and also labels of iris for full-frame images. This study provides a great opportunity to advance the field of image analysis on AS-OCT images in both two-dimensional (2D) and three-dimensional (3D) and would aid in the development of artificial intelligence-based keratitis management.

Subject terms: Corneal diseases, Infectious diseases

Background & Summary

Infectious keratitis is among the major causes of corneal opacity, which is considered one of the top 5 causes of global blindness and moderate to severe vision impairment1,2. It is a great burden to the socioeconomics since an estimated 5.5 million people are bilaterally blind and 6.2 million people are unilaterally blind resulting from corneal opacity3. To avoid severe complications resulting in vision impairment or even blindness, infectious keratitis requires prompt attention as it can progress rapidly. The disease is diagnosed and managed typically based on slit-lamp observation, nevertheless, it cannot characterize the severity of stromal inflammation and other changes of internal structures in the cornea during monitoring the progress of corneal pathologies, thus may lead to unreversible outcomes4.

The emergence of AS-OCT enables the accurate analysis and monitoring of the progress of corneal pathologies in patients with keratitis by providing cross-sectional images5–7. This optical device is non-invasive and its multiple 360-degree 2D frames also enable a 3D view of the anterior chamber in high resolution. However, clinical evaluation typically selects one frame from the whole view, due to its time-consuming manual analysis process, which may result in the missing and waste of information. With the development of artificial intelligence in ophthalmology, automatic analysis techniques based on deep learning have been applied to several modalities of ophthalmic images8,9. The rising applications of AS-OCT image analysis algorithms mainly focused on corneal segmentation, anterior segment biometry, and angle closure glaucoma, with barely any studies on keratitis. Also, the majority of these studies based on AS-OCT images utilized relatively limited datasets, and most of these datasets are not open access, not to mention annotated images which are impractical and time-costly in settings such as busy clinics10.

For this reason, the proposed AIDK dataset, including a large number of images with expert annotation, intends to advance the field of AS-OCT image analysis methods for patients with keratitis, both in 2D segmentation and 3D analysis. Figure 1 illustrates the major workflow of the AIDK data set, including dataset preparation, experts’ annotation and modification, and dataset validation.

Fig. 1.

Fig. 1

The pipeline overview of the work. (a) Dataset preparation. (b) Experts’ annotation and modification. (c) Dataset validation.

Methods

Ethics declaration

The Ethics Committee of the Second Affiliated Hospital of Zhejiang University, College of Medicine, approved this study (IR2021001176). All methods adhered to the tenets of the Declaration of Helsinki. The data was collected from patients via routine medical treatment and then obtained from medical facilities retrospectively. Also, the data doesn’t contain direct identifiers. All participants’ names have been removed and their IDs have been rearranged to anonymize identifiable information. Therefore, the Ethics Committee of the Second Affiliated Hospital of Zhejiang University, College of Medicine has issued a waiver of consent.

Patient selection and image acquisition

This study retrospectively included 64 patients diagnosed with keratitis, between September 2018 and March 2023 at the Eye Center, the Second Affiliated Hospital of Zhejiang University, College of Medicine, China. Patients with unclear corneal lesions or poor image quality that could affect the visibility of anterior segment characteristics in AS-OCT were excluded. There were no selection criteria on keratitis cause. The population profiles are summarized in Table 1. The mean and standard deviation of participant age was 54.6 ± 19.3 years (ranging from 4 to 92 years).

Table 1.

Population profiles of the AIDK dataset. FFD: Full-frame dataset, PFD: Partial-frame dataset.

Total FFD PFD
Number of patients 64 6 58
Age in years 54.6 ± 19.3 [92, 4] 53.0 ± 19.2 [86,34] 54.8 ± 19.8 [94,2]
Gender
Male 44 (68.7%) 3 (50.0%) 41 (70.7%)
Female 20 (31.3%) 3 (50.0%) 17 (29.3%)

Anterior segment imaging was carried out by swept-source Casia SS-1000 AS-OCT (Tomey Corporation, Nagoya, Japan), with the scanning beam running through the center of the cornea. A total of 1168 original AS-OCT images in BMP format were obtained directly from the software of the machine without any image preprocessing. The NO.1–5, 15–70 images were collected from the first machine (the same type as the second machine), with a resolution of 1657 × 1000 pixels. Other images were collected from the second machine, with a resolution of 1723 × 1000 pixels. The ratio of length per pixel of the images collected from the first and second machines is 49:47. Then the images were split into 2 categories: partial-frame dataset (n = 400, 58 patients) and full-frame dataset (n = 768, 6 patients). The partial-frame dataset contains each patient’s partial frames (selected from 128 frames per person), and the full-frame dataset refers to the total 128 frames of each patient were included. The partial frames were selected based on the following criteria: (1) Without massive artifacts affecting the critical information. (2) Exhibit relatively clear lesion areas the corneas.

Annotations in 2D and 3D

The lesion, cornea, and iris of all slices from the full-frame dataset were manually contoured by experts, enabling reconstruction in 3D. Also, the lesion and cornea of 2D slices from the partial-frame dataset were annotated. The diagnosis and treatment for keratitis mainly focus on the cornea and lesion area, therefore the “iris” label is not available for 2D slices. Nevertheless, to enable the reconstruction of a relatively intact anterior chamber, the study provided the “iris” label for the full-frame dataset.

In the initial annotation step, the contour of the lesion, cornea in all images, and iris in full-frame images were annotated by 3 experts using Labelme11 as follows: (1) Expert 1 (E1) ophthalmologist with 5 years of experience: Partial-frame dataset (n = 400) and 312 images from the full-frame dataset. (2) Expert 2 (E2) ophthalmologist with 3 years of experience: 114 images from the full-frame dataset. (3) Expert 3 (E3) ophthalmologist with 1 year of experience: 342 images from the full-frame dataset. Then, all annotations were checked and modified by expert 1. Additionally, the partial-frame images were further checked and modified by an expert specialized in ocular surface with 10 years of practice experience. The consolication process aims to eliminate mislabeling and to guarantee agreement between different experts. Therefore, the consolication process includes the following steps: (1) Checking if the annotated polygons are correctly matched with each label. If the polygons are not correctly matched with each label, then correction would be made directly. (2) Checking whether the lesion exists on each image. (3) Ensuring the boundaries of each polygon are properly annotated. If there is a disagreement on whether the lesion exists or on the boundaries of polygons, a more experienced ophthalmologist would be consulted to make the final decision together. Then the annotations and labels would be removed and reannotated if needed. Normally, due to the relatively high image contrast, the boundaries are relatively clear with negligible difference and no need to modify, only a few lesions are controversial.

It is noteworthy that before annotations, all experts agreed on the annotation criteria as below (Fig. 2), and were trained and tested on certain example images: (1) Lesion: The hyper-reflective area that corresponded to the clinical infiltration. (2) Cornea: Cornea and anterior sclera which are visible in AS-OCT images with no deformation caused by imaging artifact. (3) Iris: The part of the iris with clear boundaries in AS-OCT images.

Fig. 2.

Fig. 2

Examples of the lesion, cornea, and iris annotations provided by an expert.

Data Records

The AIDK dataset is available at the public figshare repository12. Features of the dataset were summarized in Table 2 and the file “Demographics of participants.xlsx”. The 2 categories of images are separated into 2 folders, named “Partial-frame_Dataset” and “Full-frame_Dataset” respectively. In each folder, original AS-OCT images in the BMP format are provided in the “Original_AS-OCT_Images” folder named as “n.bmp”, and corresponding annotated files in the JSON format are provided in the “Experts_Annotations” folder named as “n.json”.

Table 2.

Features of the AIDK dataset. FFD: Full-frame dataset, PFD: Partial-frame dataset.

Particulars AIDK data set
Total FFD PFD
Total number of AS-OCT images 1168 768 400
Imaging devices used Tomey (Casia SS-1000; image resolution: 1657 × 1000 pixels & 1723 × 1000 pixels)
Exclusion of poor-quality images ✓ ✓ ✓
Number of experts participated in annotations 3 3 2
Lesion outlining provided by experts ✓ ✓ ✓
Cornea outlining provided by experts ✓ ✓ ✓
Iris outlining provided by experts ✓
The annotations verified by experts ✓ ✓ ✓
Demographics of participants ✓ ✓ ✓

The folder “Original_AS-OCT_Images” in the “Partial-frame_Dataset” contains 400 partial-frame AS-OCT images, with the “n” ranging from 1 to 400 denoting the nth sample. The NO.1–5, 15–70 images have a resolution of 1657 × 1000 pixels, and other images have a resolution of 1723 × 1000 pixels. The ratio of length per pixel of the two size images is 49:47. The corresponding folder “Experts_Annotations” contains the same size of files, and the annotations include the lesion labeled as “Lesion” and the cornea labeled as “Cornea”.

The folder “Original_AS-OCT_Images” in the “Full-frame_Dataset” contains 768 full-frame AS-OCT images, with the “n” ranging from 401 to 1168 denoting the nth sample. The files named “401” to “528”, “529” to “656”, “657” to “784”, “785” to “912”, “913” to “1040”, and “1041” to “1168” respectively represent the full-frame scan (128 frames/person) of one of the 6 patients. The images have a resolution of 1723 × 1000 pixels. The corresponding folder “Experts_Annotations” contains the same size files, and the annotations include the lesion labeled as “Lesion”, the cornea labeled as “Cornea” and the iris labeled as “Iris”.

The file “Demographics of participants.xlsx” consists of a 6-columns sheet. From left to right, the 6 columns represent “Patient ID”, “Image ID”, “Age at acquisition”, “Acquired eye”, “Biological sex”, and “Mostly Labeled by Expert1/2/3” respectively.

Technical Validation

Image quality verification

Some certain artifacts can occur in AS-OCT images, which might affect the training process of deep learning methods. There are several studies for posterior segment OCT image quality assessments13–16. However, the criteria to assess the quality of AS-OCT images are different. In recent years, methods to assess AS-OCT image quality have been developed17,18, nevertheless, they are not specific to cornea diseases, and the approach still needs validation. Here, three main artifacts possibility relevant were evaluated in this study (Fig. 3a), defined as (1) Central artifact: The central hyper-reflective or hypo-reflective area caused by the central beam during imaging, (2) Eyelid shield: The occlusion of the eyelid resulting in the missing or deformation of the anterior chamber angle area, (3) Blur: Artifacts resulting from movement of the eye.

Fig. 3.

Fig. 3

Quality evaluation of the AIDK dataset. (a) Examples with certain defects. (b) The quality evaluation of partial-frame images (n = 400). (c) The quality evaluation of full-frame images (n = 768).

All images were evaluated, and Fig. 3 shows the distribution of image quality in both the partial-frame dataset and the full-frame dataset. Central artifact occurs in 47% of the partial-frame dataset and 48% of the full-frame dataset. This can be addressed via approaches to detect and remove the central artifact proposed by previous studies19. 15% of images in the partial-frame dataset and 16% of images in the full-frame dataset display eyelid shields but without occlusion of the cornea. This suggests that most of the images can also be used for anterior chamber angle area analysis. Less than 5% of images in the partial-frame dataset (1%) and the full-frame dataset (4%) show the artifact of blur.

Segmentation evaluation

The annotations were verified by evaluating the consistency of annotations between the same and different annotators (E1 vs. E1, E1 vs. E2, E1 vs. E3, E2 vs. E3). To make comparisons, the same 20 images randomly selected from the AIDK dataset were manually segmented by the three experts. Then, the mean intersection over union (IoU) and Dice coefficient were calculated between different annotators. Similarly, the same 20 images were segmented once more by Expert 1, to verify the consistency of the same annotator. Also, the intraclass correlation coefficient (ICC) was used to indicate the degree of agreement between the segmentations of the 3 experts.

Figure 4 shows the IoU and Dice coefficient between segmentations. The annotation of the cornea shows high consistency (all mean IoU > 0.93 and all mean Dice scores > 0.96). Even though AS-OCT has limitations in imaging iris, the annotation of the iris still shows relatively good consistency (all mean IoU > 0.84 and all mean Dice scores > 0.90). The annotations of lesion show acceptable consistency (all mean IoU > 0.73 and all mean Dice scores > 0.83). The ICCs between different areas labeled by the 3 experts were 0.897 for the cornea, 0.900 for the iris, and 0.708 for the lesion. This indicated that there is excellent agreement between different annotations of the cornea and the iris, as well as substantial agreement for annotations of the lesion20. In some cases, the infiltration of corneal lesions can sometimes make the lesion boundaries less clear, which is relatively common in clinical settings. This may result in lower IoU, Dice scores, and ICCs in corneal lesions, in comparison to that of cornea and iris.

Fig. 4.

Fig. 4

Segmentation verification of the AIDK dataset. (a) The IoU of the manually segmented cornea, iris, and lesion between different annotators. (b) The Dice score of the manually segmented cornea, iris, and lesion between different annotators.

Dataset utility

The 2 categories of datasets enable utility in both 2D analysis and 3D reconstruction of keratitis lesions and corresponding anterior chambers. Currently, we are working on a 2D analysis deep-learning-based method of AS-OCT images with keratitis lesions. We trained and tested the segmentation module based on the AIDK dataset and along with another supplement dataset. The module was developed on an improved U-Net architecture21–26 and achieved a Dice score of 0.79 for initial segmentation on the keratitis lesion. This would be specifically demonstrated in our future work. Also, the full-frame dataset provides manual contouring of all slices in full 3D regions of interest. This can increase the accuracy of the segmentation in the third dimension since 3D data are generally not annotated in full 3D due to the extremely high contouring workload27,28. We are also working on the 3D reconstruction of the keratitis-specific cornea and anterior chamber based on AS-OCT images, and have acquired initial results, which will also be demonstrated in our future work.

Usage Notes

The AIDK dataset presented in this paper can be downloaded through the link mentioned above. Users should properly acknowledge the contributions and cite this article.

Acknowledgements

This work has been supported by National Natural Science Foundation Regional Innovation and Development Joint Fund (U20A20386), Key Program of the National Natural Science Foundation of China (82330032), Key Research and Development Program of Zhejiang Province (2024C03204).

Author contributions

Conceptualization, Y.S., P.X., and J.Y.; Methodology, Y.S., P.X., and J.Y.; Data acquisition, Y.S.; Manual segmentation, Y.S., M.N., and P.X.; Experimental segmentation validation, J.C.; Dataset utility validation, P.J., G.Q., G.J., Q.W.; Statistical analysis, Y.S. and J.C.; Draft of the manuscript, Y.S.; Revision of the manuscript, M.N., P.C., M.X., P.X., and J.Y.; Supervision, P.X. and J.Y.; Funding acquisition: J.Y. All authors reviewed and approved the final manuscript.

Code availability

No custom code was used.

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

These authors contributed equally: Yiming Sun, Nuliqiman Maimaiti.

Contributor Information

Peifang Xu, Email: xpf1900@zju.edu.cn.

Juan Ye, Email: yejuan@zju.edu.cn.

References

  • 1.Ung L, et al. Infectious corneal ulceration: a proposal for neglected tropical disease status. Bull World Health Organ. 2019;97:854–856. doi: 10.2471/blt.19.232660. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Flaxman SR, et al. Global causes of blindness and distance vision impairment 1990-2020: a systematic review and meta-analysis. Lancet Glob Health. 2017;5:e1221–e1234. doi: 10.1016/s2214-109x(17)30393-5. [DOI] [PubMed] [Google Scholar]
  • 3.Wang EY, et al. Global Trends in Blindness and Vision Impairment Resulting from Corneal Opacity 1984-2020: A Meta-analysis. Ophthalmology. 2023;130:863–871. doi: 10.1016/j.ophtha.2023.03.012. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.McLeod SD, et al. The role of smears, cultures, and antibiotic sensitivity testing in the management of suspected infectious keratitis. Ophthalmology. 1996;103:23–28. doi: 10.1016/s0161-6420(96)30738-0. [DOI] [PubMed] [Google Scholar]
  • 5.Elsawy A, et al. Multidisease Deep Learning Neural Network for the Diagnosis of Corneal Diseases. American Journal of Ophthalmology. 2021;226:252–261. doi: 10.1016/j.ajo.2021.01.018. [DOI] [PubMed] [Google Scholar]
  • 6.Izatt JA, et al. Micrometer-scale resolution imaging of the anterior eye in vivo with optical coherence tomography. Arch Ophthalmol. 1994;112:1584–1589. doi: 10.1001/archopht.1994.01090240090031. [DOI] [PubMed] [Google Scholar]
  • 7.Konstantopoulos A, Kuo J, Anderson D, Hossain P. Assessment of the use of anterior segment optical coherence tomography in microbial keratitis. Am J Ophthalmol. 2008;146:534–542. doi: 10.1016/j.ajo.2008.05.030. [DOI] [PubMed] [Google Scholar]
  • 8.Song F, Zhang W, Zheng Y, Shi D, He M. A deep learning model for generating fundus autofluorescence images from color fundus photography. Adv Ophthalmol Pract Res. 2023;3:192–198. doi: 10.1016/j.aopr.2023.11.001. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Li JO, et al. Digital technology, tele-medicine and artificial intelligence in ophthalmology: A global perspective. Prog Retin Eye Res. 2021;82:100900. doi: 10.1016/j.preteyeres.2020.100900. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Garcia Marin YF, Alonso-Caneiro D, Vincent SJ, Collins MJ. Anterior segment optical coherence tomography (AS-OCT) image analysis methods and applications: A systematic review. Comput Biol Med. 2022;146:105471. doi: 10.1016/j.compbiomed.2022.105471. [DOI] [PubMed] [Google Scholar]
  • 11.Labelme: Image Polygonal Annotation with Python.
  • 12.Sun Y, 2024. An AS-OCT image dataset for deep learning-enabled segmentation and 3D reconstruction for keratitis. figshare. [DOI] [PMC free article] [PubMed]
  • 13.Ginesu G, Massidda F, Giusto DD. A multi-factors approach for image quality assessment based on a human visual system model. Signal Processing: Image Communication. 2006;21:316–333. doi: 10.1016/j.image.2005.11.005. [DOI] [Google Scholar]
  • 14.Stein DM, et al. A new quality assessment parameter for optical coherence tomography. Brit J Ophthalmol. 2006;90:186–190. doi: 10.1136/bjo.2004.059824. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Barnum, P., Mei, C., Hiroshi, I., Wollstein, G. & Schuman, J. in 2008 5th IEEE International Symposium on Biomedical Imaging: From Nano to Macro. 392-395.
  • 16.Liu S, et al. Quality assessment for spectral domain optical coherence tomography (OCT) images. Proc SPIE Int Soc Opt Eng. 2009;7171:71710x. doi: 10.1117/12.809404. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Chen, B., Solebo, A. L. & Taylor, P. in Proceedings - International Symposium on Biomedical Imaging.
  • 18.Niwas SI, et al. Complex wavelet based quality assessment for AS-OCT images with application to Angle Closure Glaucoma diagnosis. Comput Methods Programs Biomed. 2016;130:13–21. doi: 10.1016/j.cmpb.2016.03.011. [DOI] [PubMed] [Google Scholar]
  • 19.Larocca F, et al. Robust automatic segmentation of corneal layer boundaries in SDOCT images using graph theory and dynamic programming. Biomed Opt Express. 2011;2:1524–1538. doi: 10.1364/boe.2.001524. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Chen CC, Barnhart HX. Assessing agreement with intraclass correlation coefficient and concordance correlation coefficient for data with repeated measures. Comput Stat Data An. 2013;60:132–145. doi: 10.1016/j.csda.2012.11.004. [DOI] [Google Scholar]
  • 21.Ibtehaz N, Rahman MS. MultiResUNet: Rethinking the U-Net architecture for multimodal biomedical image segmentation. Neural Netw. 2020;121:74–87. doi: 10.1016/j.neunet.2019.08.025. [DOI] [PubMed] [Google Scholar]
  • 22.Sirinukunwattana K, et al. Gland segmentation in colon histology images: The glas challenge contest. Med Image Anal. 2017;35:489–502. doi: 10.1016/j.media.2016.08.008. [DOI] [PubMed] [Google Scholar]
  • 23.Ronneberger O, Fischer P, Brox T. U-Net: convolutional networks for biomedical image segmentation. Medical Image Computing and Computer-Assisted Intervention—MICCAI. 2015;9351:234–241. [Google Scholar]
  • 24.Yu, L. Q., Yang, X., Chen, H., Qin, J. & Heng, P. A. Volumetric ConvNets with Mixed Residual Connections for Automated Prostate Segmentation from 3D MR Images. Thirty-First Aaai Conference on Artificial Intelligence, 66–72 (2017).
  • 25.Christ, P. F., et al. in International conference on medical image computing and computer-assisted intervention (pp. 415–423) (Springer, 2016).
  • 26.Wang S, et al. CT male pelvic organ segmentation using fully convolutional networks with boundary sensitive representation. Medical Image Analysis. 2019;54:168–178. doi: 10.1016/j.media.2019.03.003. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Çiçek, Ö., Ahmed, A., Lienkamp, S. S., Brox, T. & Ronneberger, O. 3D U-Net: Learning Dense Volumetric Segmentation from Sparse Annotation. (Cornell University Library, arXiv.org, Ithaca, 2016).
  • 28.Kuo W, et al. Terabyte-scale supervised 3D training and benchmarking dataset of the mouse kidney. Scientific Data. 2023;10:510. doi: 10.1038/s41597-023-02407-5. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Citations

  1. Sun Y, 2024. An AS-OCT image dataset for deep learning-enabled segmentation and 3D reconstruction for keratitis. figshare. [DOI] [PMC free article] [PubMed]

Data Availability Statement

No custom code was used.


Articles from Scientific Data are provided here courtesy of Nature Publishing Group

RESOURCES