Next Article in Journal
Automated Heart Rate Detection in Seismocardiograms Using Electrocardiogram-Based Algorithms—A Feasibility Study
Next Article in Special Issue
Precise Prostate Cancer Assessment Using IVIM-Based Parametric Estimation of Blood Diffusion from DW-MRI
Previous Article in Journal
Validating the Concept of Mechanical Circulatory Support with a Rotary Blood Pump in the Inferior Vena Cava in an Ovine Fontan Model
Previous Article in Special Issue
Improving the Generalizability of Deep Learning for T2-Lesion Segmentation of Gliomas in the Post-Treatment Setting
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

OMGMed: Advanced System for Ocular Myasthenia Gravis Diagnosis via Eye Image Segmentation

1
Faculty of Information Technology, Beijing University of Technology, Beijing 100124, China
2
Department of Neurology, Beijing Hospital, Beijing 100730, China
3
Tsinghua National Laboratory for Information Science and Technology, Tsinghua University, Beijing 100084, China
*
Authors to whom correspondence should be addressed.
Bioengineering 2024, 11(6), 595; https://doi.org/10.3390/bioengineering11060595
Submission received: 31 March 2024 / Revised: 23 May 2024 / Accepted: 30 May 2024 / Published: 11 June 2024
(This article belongs to the Special Issue Artificial Intelligence in Auto-Diagnosis and Clinical Applications)

Abstract

:
This paper presents an eye image segmentation-based computer-aided system for automatic diagnosis of ocular myasthenia gravis (OMG), called OMGMed. It provides great potential to effectively liberate the diagnostic efficiency of expert doctors (the scarce resources) and reduces the cost of healthcare treatment for diagnosed patients, making it possible to disseminate high-quality myasthenia gravis healthcare to under-developed areas. The system is composed of data pre-processing, indicator calculation, and automatic OMG scoring. Building upon this framework, an empirical study on the eye segmentation algorithm is conducted. It further optimizes the algorithm from the perspectives of “network structure” and “loss function”, and experimentally verifies the effectiveness of the hybrid loss function. The results show that the combination of “nnUNet” network structure and “Cross-Entropy + Iou + Boundary” hybrid loss function can achieve the best segmentation performance, and its MIOU on the public and private myasthenia gravis datasets reaches 82.1% and 83.7%, respectively. The research has been used in expert centers. The pilot study demonstrates that our research on eye image segmentation for OMG diagnosis is very helpful in improving the healthcare quality of expert doctors. We believe that this work can serve as an important reference for the development of a similar auxiliary diagnosis system and contribute to the healthy development of proactive healthcare services.

1. Introduction

Along with the development of information technology, the use of artificial intelligence to empower the healthcare industry is a major trend nowadays. In particular, the rare diseases computer-aided healthcare system may provide a solution in the areas where medical resources are scarce. An example is the diagnosis and treatment of Myasthenia Gravis (MG). According to statistics, the number of patients with myasthenia gravis is increasing year by year globally and has reached 1.1 million in 2020. It is expected to reach 1.2 million in 2030 [1] and requires lifelong testing and treatment. However, caring for MG is increasingly clustered in expert centers. On the one hand, many patients, especially in under-developed areas, can hardly get a chance to receive treatment in nearby hospitals because of the limited healthcare resources. They need to travel long distances to the expert centers, which generates a great economic burden [2]. On the other hand, it is time-consuming, laborious, and subjective for doctors to manually diagnose myasthenia gravis. Therefore, it has long been a desire to develop a convenient and cost-effective computer-aided auxiliary diagnosis system for Myasthenia Gravis, which is able to aid doctors in rapid diagnosis and help patients in under-developed areas to monitor their conditions and receive treatment suggestions from doctors remotely, so as to effectively alleviate the problem of “difficult and expensive access to healthcare”. In this paper, we present an aided diagnosis system for MG based on eye image segmentation and conduct an empirical study on the algorithm of eye segmentation for MG on this basis.
Myasthenia Gravis (MG) is an autoimmune disorder caused by autoantibodies acting against the nicotinic acetylcholine receptor on the postsynaptic membrane at the neuromuscular junction [3], and its main symptoms are weakness and fatigability of the voluntary muscles. Myasthenia gravis occurs regardless of race or gender. It usually affects women under the age of 40 and older adults between the ages of 50 and 70. But in fact, it can occur in people of all ages. Among them, the eye muscles are the main starting feature of myasthenia gravis, According to statistics, more than 50% of MG patients present with fatigue ptosis in the early stage of the disease [4], as shown in Figure 1, which we refer to as Ocular Myasthenia Gravis (OMG) [5] (i.e., only eye muscle weakness but no muscle weakness elsewhere). Without immunotherapy, 50–80% of patients will rapidly progress to Generalized MG (GMG) within two years [6], which in turn may lead to paralysis or even life-threatening, with a hospital mortality rate of 14.69% [7].
Currently, scale scoring serves as a principal method for the clinical diagnosis of OMG. Commonly utilized scales include the Quantitative Myasthenia Gravis scores (QMGs) and the Absolute and Relative score of MG (ARS-MG) among others, which aim to evaluate the severity of OMG in patients. However, the complexity of these scales combined with a shortage of well-experienced physicians, hinders early screening and cost-effective continuous monitoring of patients with OMG. This paper focuses on eye image segmentation and fully automatic OMG diagnosis. Its goal is to reduce healthcare costs in economically disadvantaged regions and enhance disease diagnosis efficiency, through which to enable precise and efficient proactive healthcare.
Studies on fundus image analysis have been made for years, laying the foundation for the development of various disease-assisted diagnostic systems specific to eye images, including diabetes mellitus [8], chronic kidney disease [9], and dry eye disease [10], Liu et al. [11] conducted an automatic diagnosis of myasthenia gravis using eye images, but they did not conduct in-depth empirical research on the eye segmentation algorithm. On this basis, we further studied the eye segmentation algorithm suitable for myasthenia gravis from two aspects of network structure and loss function, and implemented a pilot application of proactive healthcare service in practical scenarios.
Table 1 presents the examination indices for Ocular myasthenia gravis (OMG) within the scoring scale. Given the specific symptoms of ptosis or eye movement weakness in patients with this condition, we can calculate clock point (or eyelid distance) and scleral area based on the results of eye segmentation to automatically and efficiently diagnose ocular myasthenia gravis.
The motivation of the paper is to develop an eyes image segment-based automatic aided diagnosis system for OMG so that OMG patients can obtain high-quality healthcare services conveniently, remotely, and cost-effectively, and at the same time free up the diagnostic efficiency of doctors to a certain extent. Our contribution can be summarized as follows: (1) a computer-aided diagnosis system for OMG based on eye image segmentation is proposed, called OMGMed, which can effectively reduce the burden of expert doctors (a scarce resource), as well as greatly reduce the cost of patients’ access to healthcare, and make it possible to disseminate high-quality healthcare to remote areas. (2) An in-depth empirical analysis of eye image segmentation for myasthenia gravis, focusing on identifying suitable eye segmentation algorithms through the evaluation of network structures and loss functions. The empirical findings indicate that the nnUNet network structure delivers superior performance. Additionally, a hybrid loss function incorporating boundary loss enhances the eye segmentation performance for OMG, with the mean Intersection over Union (MIOU) achieving 82.1% and 83.7% in two datasets, respectively. (3) A pilot study is described for the application of the proposed system to implement proactive medical care in a real-world usage scenario. It demonstrates that our system can effectively improve the diagnostic accuracy of expert doctors. We believe that our pilot study can serve as an important reference for auxiliary diagnosis systems of myasthenia gravis and even other diseases.
The remaining parts of the paper are organized as follows. Section 2 introduces the framework of a computer-aided auxiliary diagnosis system for OMG and then analyzes the algorithmic optimization method for eye segmentation. Section 3 shows the results of the algorithmic optimization method and auxiliary diagnosis. Section 4 discusses several key issues including the results obtained and future work. Section 5 reports the case study on the application of the proposed solution to enable proactive healthcare services. Finally, conclusions are drawn in Section 6.

2. Methods

2.1. The Framework of OMGMed

The basic requirement of this research is to develop a convenient, cost-effective and efficient computer-aided auxiliary diagnosis system for OMG. Firstly, OMGMed is designed to aid doctors by providing diagnostic references for assessing the condition of patients with OMG, thereby significantly alleviating the workload of well-experienced physicians(the scarce resources) and enhancing diagnostic efficiency. Secondly, it offers patients in remote locations timely and precise insights into their conditions, minimizing the associated costs of traveling extensive distances to expert centers. As shown in Figure 2, The main component of the system consists of three parts, i.e., data preprocessing, indicator calculation, and automatic OMG diagnosis. These three parts will run on the server of a hospital and can be integrated into its existing information systems.
  • Data preprocessing module
    Given the abundance of redundant features within facial images, we employed the face key point detection model from the Dlib library to isolate the key region of the human eye, thereby minimizing the impact of unnecessary features. Acknowledging the diverse shapes of human eyes, we extended a part of the pixels in each of the four directions to ensure the integrity of the eye in the cropped image. Finally, we get the two-eye images corresponding to the face image (left eye and right eye), and the processed two-eye images are then input into the indicator calculation module for further analysis.
  • Indicator calculation module
    Initially, we conducted fine-grained multi-class segmentation on the eye images. Following the segmentation outcomes, we calculated the pixel distances (area) for three key indicators: eyelid distance, clock point, and scleral area, with reference to the Common Muscle Weakness Scale: Quantitative Myasthenia Gravis Score (QMGS) and the Absolute and Relative Score of Myasthenia Gravis (ARS-MG) as depicted in Figure 3.
    Eyelid distance: Eyelid distance is the distance between the upper and lower eyelids when the patient is in front view and maximum eyelid view.
    Clock point: the cornea is regarded as a clock face, and the positions of the left and right numerical lines of the dial were used as the basis for division into seven clock positions, 12 o’clock, 11–1 o’clock, 10–2 o’clock, 9–3 o’clock, 8–4 o’clock, 7–5 o’clock, and 6 o’clock, in which the patient’s upper eyelid ptoticized to the position of the clock in the palpebral superior fatigability test.
    Scleral area: It is the maximum area that the sclera is exposed in the corresponding direction when the patient gazes to the left or to the right.
    After many discussions and communication with doctors in Beijing Hospital, we will no longer measure the scleral distance indicator but instead measure the scleral area. The advantages are as follows: (1) From the computer point of view, compared with a single distance, the two-dimensional area can more accurately reflect the horizontal movement of the patient’s eye. (2) From a clinical point of view, the doctor can independently use the caliper or visual estimation of distance, but can not estimate the area, therefore, measuring the scleral area can better assist the doctor in diagnosis.
  • OMG diagnosis module
    With reference to QMGS and ARS-MG, and after many exchanges with doctors specializing in myasthenia gravis in Beijing Hospital, we decided to use the key indicator—scleral area as the basis for diagnosis. We will calculate the proportion of the scleral area to the entire eye area, using 3% as the threshold (considering that the segmentation results may be inaccurate). If the scleral area proportion is less than 3%, we consider it to be normal; If the scleral area is greater than 3%, it indicates that the subject is unable to move the eyes normally, which is a diagnosis of ocular myasthenia gravis. From the perspective of the process, we diagnose the left eye and the right eye respectively according to the calculated indicators, and finally comprehensively output the comprehensive diagnosis results to the expert doctor or the patient.
The framework of the diagnostic system underscores that precise segmentation of the eye is imperative for diagnosing myasthenia gravis. As the saying goes, “A miss is as good as a mile”, it becomes evident that any segmentation inaccuracies can substantially influence the indicator calculating, thereby affecting the final diagnosis’s accuracy. However, as shown in Figure 4, the performance of existing data-driven methods on multi-class segmentation of eye images leaves to be desired [12] (especially the boundary performance). The deeper rationale for the inaccurate segmentation potentially resides in the limited scale of accessible ocular medical datasets [13]. However, labeling medical datasets usually requires a high level of expertise and great labor costs [13], thus our primary emphasis centers on the resolution of this issue within the realm of deep learning methods. Intuitively, we need to take into account two factors: (1) network structure, and (2) loss function. Therefore, in the next step, we will conduct an empirical study from these two aspects and optimize the performance of the myasthenia gravis eye image segmentation model by combining the characteristics of both.

2.2. Analysis of Network Structure

First, we address the network structure, based on the infrastructure, we divide the existing common data-driven segmentation methods into two categories: the CNN-based network structure and the Transformer-based network structure, as shown in Table 2.
  • Convolutional Neural Networks (CNNs)
    CNN was initially proposed by Fukushima [23] in his seminal paper on the “Neocognitron”, which is one of the most classic and widely used architectures for computer vision tasks [24]. We believe it’s also suitable for eye image segmentation. As depicted in Figure 5, a CNN is typically structured into three key layers: (i) a convolutional layer, where kernels (or filters) equipped with learnable weights are applied to extract image features; (ii) a nonlinear layer, which applies an activation function to feature maps to enable the modeling of nonlinear relationships; and (iii) a pooling layer, which reduces the feature map resolution—and consequently, the computational burden—by aggregating neighboring information (e.g., maxima, averages) through a predefined rule. In the following, we will describe the CNN structure-based network.
    • FCN: Fully Convolutional Networks (FCN) is a milestone in DL-based semantic image segmentation models. It includes only convolutional layers, which enables it to output a segmentation map whose size is the same as that of the input image.
    • U-Net: The structure of U-Net consists of a contracting path to capture context and a symmetric expanding path that enables precise localization, which was initially used for efficient segmentation of biomicroscopy images, and has since been widely used for image segmentation in other domains as well.
    • SegNet: The core structure of SegNet consists of an encoder network, and a corresponding decoder network followed by a pixel-wise classification layer. The innovation lies in the manner in which the decoder upsamples its lower-resolution input feature map(s). Specifically, the decoder uses pooling indices computed in the max-pooling step of the corresponding encoder to perform non-linear upsampling.
    • U-Net++: U-Net++ adds a series of nested, dense skip pathways to unet, with the re-designed skip pathways aimed at reducing the semantic gap between the feature maps of the encoder and decoder sub-networks
    • Deeplabv3+: Deeplabv3+ applies the depthwise separable convolution to both Atrous Spatial Pyramid Pooling and decoder modules, resulting in a faster and stronger encoder-decoder network.
    • U2-Net: U2-Net is a two-level nested U-structure that is able to capture more contextual information from different scales without significantly increasing the computational cost. It is initially used for salient object detection(SOD).
    • nnU-Net: nnU-Net can be considered as an adaptive version of U-Net that automatically configures itself, including preprocessing, network architecture, training, and post-processing for any new task in the biomedical field. Without manual intervention, nnU-Net surpasses most existing approaches, including highly specialized solutions on 23 public datasets used in international biomedical segmentation competitions.
  • Transformers
    Transformers were first proposed by [25] for machine translation and established state-of-the-arts in many NLP tasks. Illustrated in Figure 6, its inputs and outputs are one-dimensional sequences, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely to enhance capabilities at modeling global contexts. This is precisely the capability required for the multi-class segmentation task of fine-grained eye images. To extend the Transformer’s application to computer vision, Dosovitskiy et al. [26] proposed Vision Transformer (ViT) model, which achieved state-of-the-art on ImageNet classification by directly applying Transformers with global self-attention to full-sized images. In the following, we will briefly describe the Transformer structure-based network.
    • Segmenter: Extending the visual transformer (ViT) to semantic segmentation, segmenter relies on the output embeddings corresponding to image patches and obtains class labels from these embeddings with a point-wise linear decoder or a mask transformer decoder. The network outperforms the state-of-the-art on both ADE20K and Pascal Context datasets and is competitive on Cityscapes.
    • TransUNet: TransUNet merits both Transformers and U-Net, not only encoding strong global context by treating the image features as sequences but also utilizing the low-level CNN features via a u-shaped hybrid architectural design. It achieves superior performances to various competing methods on different medical applications including multi-organ segmentation and cardiac segmentation.
Due to the boundary inaccuracy of the eye segmentation results (the accuracy of the boundary of the segmentation results is a key factor affecting the performance [27]). We will incorporate a boundary loss function to steer the network’s focus toward boundary pixels and explore how to hybrid the loss functions to further optimize segmentation performance in our next study.

2.3. Analysis of Loss Function

For the general optimization of image segmentation, current loss functions can be divided into two groups based on the scope of pixels considered by the loss function: global loss functions and local loss functions. The global loss function calculates the loss for all pixels, including both foreground (segmentation target) and background pixels; The local loss function computes the loss exclusively for foreground pixels.
  • Cross-entropy loss [28]) (CE loss): It quantifies the disparity between the predicted value and the actual value on a per-pixel basis, considering all pixels within the image equally. It belongs to global loss.
  • Weighted cross-entropy loss [29] (WCE loss): It further adds category weights to the cross-entropy loss, which belongs to global loss.
  • IOU loss [30]: It only focuses on the segmentation targets, assessing the intersection and union ratio between true pixel values and their predicted probabilities. Belonging to local loss.
  • Dice loss [31]: It only focuses on the segmentation targets, and further emphasizes the repeated computation component based on IOU loss. Belonging to local loss.
On the one hand, though the global losses empirically exhibit a high degree of stability, they tend to be less sensitive to small target segmentation, resulting in a training bias toward background classes with a larger number of pixels, and they lack a specific focus on segmentation boundaries. On the other hand, local losses concentrate exclusively on foreground pixels (segmenting the target pixels), making them less stable, and they also do not focus on the boundary pixels. To further improve the segmentation performance of OMG eye images, we introduce the Boundary loss [32].
  • Boundary loss: Focusing on the boundary pixels of the segmentation target, assessing the intersection and union ratio between true boundary pixel values and their predicted probabilities. Specifically, it only pays attention to the boundary pixels of the pupil, iris, sclera, and tear caruncle, respectively (in Figure 7), and the numerator is to multiply the predicted probability value of each category with the true value of the target pixel by pixel and then sum it; the denominator is to add the predicted probability value and the true value of each category pixel by pixel, and then to subtract the part of the “repeated computation component”. This loss has the advantages of symmetry (labels and prediction maps can be swapped without affecting computational results) and no preference (no preference for large or small targets) [33].
Table 3 provides a evaluation results of current global losses (CE loss and WCE loss), local losses (IOU loss and Dice loss), and boundary loss in terms of (1) Stability: Less loss oscillation during training. (2) Boundary Concern: Whether to focus on boundary pixels. (3) Insensitivity: Whether insensitive to a certain type of target segmentation. We believe that boundary loss can effectively improve the segmentation accuracy of eye images as well as the OMG diagnosis due to its focus on boundary segmentation. However, as an auxiliary loss, boundary loss usually suffers from instability since it considers too few pixels (The pixels near the boundary are often only a small fraction of the overall image pixels), thus it is more suited for supplementary roles when hybridized with other loss functions.
Table 3. Loss function evaluation results, where defined with the unified notation from Table 4.
Table 3. Loss function evaluation results, where defined with the unified notation from Table 4.
Loss FunctionDefinitionStabilityBC *Insensitivity
Global lossCE Loss L c e = 1 N i = 1 N j = 1 m ( y i j l o g ( y ^ i j ) ) high×
WCE Loss L w c e = 1 N i = 1 N j = 1 m ( w i y i j l o g ( y ^ i j ) ) high×
Local lossIOU Loss L I = 1 1 m j = 1 m i = 1 N y i j y ^ i j i = 1 N y i j + i = 1 N y ^ i j i = 1 N y i j y ^ i j low×
Dice Loss L D = 1 1 m j = 1 m 2 i = 1 N y i j y ^ i j i = 1 N y i j + i = 1 N y ^ i j low×
Boundary lossBoundary Loss L B = 1 1 m j = 1 m i = 1 N d y i j y ^ i j i = 1 N d y i j + i = 1 N d y ^ i j i = 1 N d y i j y ^ i j very low
* BC means boundary concern. × and — mean the Loss does not have this attribute. means the Loss has this attribute.

3. Experiments and Results

3.1. Datasets

The experiments were performed on the normal human eye dataset UBIRIS.V2 and a private dataset of eye images of myasthenia gravis patients, both of which contain multiple shots (different times, environments, and viewpoints) of the same person’s two eyes. UBIRIS.V2 is a database of visible wavelength iris images captured on-the-move and ata-distance [13], and the image acquisitions were captured using a Canon EOS 5D, containing 261 people with a total of 11,102 images, of which we labeled 3289. The private dataset is a dataset of eye images of myasthenia gravis patients that we collected from Beijing Hospital, 76 individuals, totaling 266 facial images captured with Nikon D300S (Nikon, Tokyo, Japan), Xiaomi Mi MAX2 (Xiaomi, Beijing, China), Redmi K60 (Xiaomi, Beijing, China), and Redmi Note12 Turbo (Xiaomi, Beijing, China). These images were processed to crop the eye region, resulting in 532 labeled eye images. In total, five parts of the eye are labeled: pupil, iris, sclera, lacrimal caruncle, and surrounding skin. The datasets were divided into training and test sets at a ratio of 4:1. Furthermore, to augment the dataset, the private data training set was enhanced to 850 images through image flipping.
We use Mean Intersection Over Union (MIOU), Mean Dice (MDice), Mean F1 (MF1), Mean Precision (MPrecision), Mean Recall (MRecall), Mean Boundary Intersection Over Union (MBIOU), Average time (avg_time) metrics to evaluate the model performance, where the MBIOU metric proposed by Cheng et al [33] is used to evaluate the model boundary segmentation performance. avg_time denotes the average model segmentation time.

3.2. Implementation Details

Our experiments are implemented by pytorch, whose hyperparameters are tuned according to the verified performance of the grid search. During training, it is trained using an SGD optimizer with a learning rate of 0.0001, the batch size defaults to 16, and due to faster convergence, the epoch of nnUnet is set to 80, while the epoch of all other networks is set to 150, and for the boundary loss, d is set to 2% of the image diagonal. All experiments were performed using a single Nvidia RTX4090 GPU(NVIDIA, Santa Clara, CA, USA). Since physiologically the pupil and iris are quasi-circular [34], we finally used ellipse fitting to fit the pupil and iris in the segmentation results as quasi-circular.

3.3. Empirical Experiment of Network Structure

We applied the nine networks described in Section 2.2 to segment our public and private datasets. The results, presented in Table 5 and Table 6, indicate that nnUnet, TransUNet, and Deeplabv3+ outperformed the others, ranking as the top three networks. The MIOU indexes of nnUnet, TransUNet, and Deeplabv3+ reached 81.43%, 80.89%, and 75.10%, respectively. Based on the respective characteristics of these three networks, we believe that they can well adapt to the multi-class segmentation of eye images of myasthenia gravis. As illustrated in Figure 8, which displays the segmentation outcomes from different networks. In addition, we also distinguish between the segmentation results of the left eye and the right eye. As can be seen from the Figure 8, there is no significant difference between the segmentation results of the left eye and the right eye, which indicates that the segmentation algorithm we adopted has high stability and consistency. It is not difficult to speculate that although the direction of the eyes is opposite, their external morphology and internal structure are consistent. This also proves that our strategy of data enhancement with horizontal flip is reasonable, and the consistency of both eyes can minimize the extra noise introduced after flip.
In order to optimize the segmentation performance even further, Section 3.4 we continue to explore the effect of the hybrid loss function on the multi-class segmentation of eyes. The following experiments will be based on the nnUnet, TransUNet and Deeplabv3+ networks.

3.4. Empirical Experiment of Hybrid Loss Function

Based on the categorization of loss functions outlined in Section 2.3, we derived three hybrid methods, namely “G + B” (G + B is an abbreviation for Global + Boundary.), “L + B” (L + B is an abbreviation for Local + Boundary.), and “G + L + B” (G + L + B is an abbreviation for Global + Local + Boundary.), and conducted experiments on both datasets. The optimal results achieved using various hybrid methods for nnUnet, TransUnet, and Deeplabv3+ are given in Table 7, Table 8, and Table 9, respectively.
The experiments validate the enhanced performance of both “G + B” and “G + L + B” hybrid modes. Specifically, In both datasets and both hybrid modes, the MBIOU of nnUnet is improved by an average of 1.0375% and the MIOU by an average of 0.5%; the MBIOU of TransUnet is improved by an average of 0.8625% and the MIOU by an average of 0.2875%; the MBIOU of Deeplabv3+ is improved by an average of 1.55% and the MIOU by an average of 0.9125%; In addition, we also conducted hybrid loss function experiments in other networks (FCN, SegNet, U-Net, U-Net++, U2-Net, Segmenter), and averaged the results of the above six networks, their MBIOU is improved by an average of 1.625%, and MIOU is improved by an average of 1.3%. These results underscore the robust generalization capability of the boundary loss in the context of eye image segmentation tasks. Concurrently, we observed that segmentation performance with the “L + B” model may significantly declined (an average decline of 11.625% for MBIOU and 14.52% for MIOU in two datasets and these three networks). Figure 9 shows the loss curves of different hybrid modes. Consequently, to leverage boundary loss for enhancing both overall segmentation quality and boundary precision, a global loss must first exist as the foundation. Therefore, to ensure greater stability, emphasize boundary concern, and reduce insensitivity, the hybrid loss function should adhere to the hybrid modes of “G + L + B” or “G + B”, while trying to avoid the “L + B” mode.
In order to maximize the performance of myasthenia gravis eye image segmentation, we finally decided to use the “nnUNet” network structure and the “CE + Iou + Boundary” hybrid loss function as the segmentation model of the diagnosis system by combining the network structure and the loss function aspects of the research.The specific hybrid loss function formula is shown in (1).
L H y b r i d = α L C E + β L D i c e + γ L B o u n d a r y
where α is the cross-entropy loss weight, β is the Dice loss weight, and γ is the boundary loss weight, we set α = β = 1 and γ goes from 0 to 1 with the number of epoch.

3.5. Accuracy of Diagnosing OMG by Doctors with the Assistance of OMGMed

We also tested the accuracy of doctors diagnosing myasthenia gravis with the help of the system. Four senior doctors, four junior doctors, and four non-doctors were invited to participate in the diagnosis, and senior doctors were defined as doctors who had worked for more than ten years or as deputy director or above; Junior doctors refer to doctors who have worked for less than ten years, and non-medical staff refers to students of other majors in the project team. We randomly selected 20 healthy people and 26 sick people as subjects, first let doctors and the OMGMed system independently diagnose, and then let doctors refer to the OMGMed system for diagnosis again. Specifically, the OMGMed system will calculate the pixel distance (area) of the three indicators of clock point, eyelid distance, and scleral area according to the subject’s eye image segmentation results, and then obtain the final diagnosis according to the relative proportion of scleral area. The segmentation results obtained by the OMGMed system, the calculation results of relevant indicators, and the final diagnosis results obtained according to the scleral area are all output to the doctor, and the doctor can refer to the above information to get the final diagnosis results. Finally, we compared the results of these three diagnoses with the real label to obtain the average sensitivity and specificity of the independent diagnosis group and the OMGMed group. Sensitivity refers to the proportion that correctly identifies the actual positives. Specificity refers to the proportion of actual negatives that are correctly identified. In addition, we also measured the approximate average time spent diagnosing a subject by various physicians in the independent and auxiliary diagnostic groups.
It can be seen from Figure 10 that the mean sensitivity and specificity of independent diagnosis of the junior group and non-doctor group is significantly lower than that of the OMGMed group. After referring to OMGMed-assisted diagnosis, the average sensitivity and specificity of non-medical staff were increased by 38.46% and 25%, respectively, and that of primary doctors by 19.23% and 15%, respectively. Moreover, the diagnostic accuracy of senior doctors improved when they referred to the system diagnosis, surpassing OMGMed’s automated diagnosis accuracy. In addition, the system can also improve the speed of doctors’ diagnosis, and the average diagnosis time of a subject is shortened from 7.7 min to 2.5 min. This evidence suggests that OMGMed can significantly enhance the diagnostic precision and efficiency of physicians. This system has been implemented in the MG clinic at Beijing Hospital.

4. Discussion

4.1. Eye Segmentation Performance

4.1.1. Network Structure

We have carried out experiments on nine network structures in Section 3.3, covering the two major infrastructures of CNN and Transformer. In the end, the top three in terms of performance are nnUnet, TransUNet, and Deeolabv3+ in order from high to low. Based on this result, we believe that nnUnet excels in the complex multi-class segmentation of myasthenia gravis eye images, attributed to its robust adaptive capability. The encoder component of TransUNet merges the Transformer encoder’s global context modeling strength with the CNN encoder’s capacity for detailed, high-resolution spatial information extraction, which facilitates superior performance in multi-class eye image segmentation tasks for OMG. Meanwhile, Deeplabv3+ also can achieve good segmentation results due to the separable convolution and pyramid structure that expands the sensory field and captures multi-scale contextual information.

4.1.2. Loss Function

The global loss has a high degree of stability, but it does not focus on the boundary pixels. The local loss has a low degree of stability, but it can focus on the whole of the segmented object. The boundary loss stability has a very low degree of stability, but it can focus on the boundary pixels. Based on the above cognition, we conducted a hybrid experiment on the three types of loss functions in Section 3.4. From the experimental results, we found that the performance of the “G + B” hybrid mode and “G + L + B” hybrid mode was improved, indicating that the boundary loss could effectively improve the eye segmentation effect. However, the “L + B” hybrid mode would lead to a great decline in performance. Combining three types of loss function characteristics, we attribute to a phenomenon of “local bias”: The model overly fixates on local outcomes to the detriment of overall segmentation results, resulting in unstable training processes and unreliable training outcomes. The loss curves of different hybrid modes also verify our conjecture (Figure 9). It can be seen that the loss function curve of the “L + B” combination oscillates greatly, indicating that the optimization direction of the model is prone to great changes during the training process due to the consideration of too few pixels. Leads to unstable and unreliable results.

4.2. Practical Implication

OMGMed system has improved the accuracy and efficiency of diagnosis for different groups (non-doctors, junior doctors, and senior doctors). From the perspective of accuracy, the lower the group’s professional grade, the greater the improvement of its accuracy, which is also logical. The system is most helpful to the non-doctor group, which further demonstrates the potential of the system for remote disease monitoring of patients in remote areas, illustrating the scope of the system and the wide range of applicable groups. From the perspective of time, in the past, doctors needed to use calipers close to the eyes of patients and measure the actual indicators, during which they also faced problems such as patients shaking, blinking, manual measurement inaccurate, and many times they needed to re-measure, which was very inefficient. However, the OMGMed system directly measured through eye images, greatly saving the measurement time and reducing the burden of doctors.

4.3. Limitations and Future Work

4.3.1. Image Quality Varies

Pursuant to the results of empirical studies on eye image segmentation, we find that one dominant reason for mis-segmentation might lie in the fact that the eye images from different devices and environments have different qualities. For example, the eye image may be blurred when taken by mobile phones with low pixels; Shooting in a dark environment may cause dark areas in the lacrimal caruncle. Shooting light directly into the patient may cause the iris to appear reflected light, which is similar in color to the sclera. The above conditions are all factors that will affect image quality. Research indicates that CNNs are highly susceptible to out-of-distribution samples. It is well established that the performance of CNNs on out-of-distribution samples significantly diminishes [35].Based on the above situation, taking into account the differences in uncertain factors such as equipment, environment, and location, we plan to try to improve such problems through “data” and “model” in future work.
At the data level, Traditional data augmentation (flipping, translation, clipping, etc.) is commonly unable to extrapolate the generated data, which leads to data bias and suboptimal performance of trained models [36]. Many researchers have shown that data augmentation using GAN techniques can provide additional benefits over traditional methods [37]. Consequently, GAN techniques can be used to synthesize realistic myasthenia gravis eye images for data augmentation, thus mitigating data imbalance issues. Furthermore, for image data of poor quality, GAN techniques can be utilized for de-noising preprocessing. Cheong et al. built DeShadowGAN using manually masked artifact images and conditional GAN with perceptual loss and demonstrated the effectiveness of the model in removing shadow artifacts [38]. Although these techniques are primarily applied to fundus or OCT images, they also offer valuable insights into potential future research directions.
At the model level, firstly we can consider segmentation models built on the GAN network architecture, including conditional GANs [39], patch-based GANs [40], and topological structure-constrained GANs [41], etc. Secondly, we can focus on enhancing the robustness (generalization ability) of the segmentation model. For instance, adversarial training can be used to enhance the cross-domain generalization ability of the model [42,43,44], which introduces simulated attacks during training to bolster the model generalization ability of the crossing domains. This approach integrates segmentation consistency across different distributions of data and has great potential to be employed for improving the accuracy of eye image segmentation and automatic diagnosis of OMG.

4.3.2. Single Diagnostic Basis

In the process of diagnosing ocular myasthenia gravis, our system has the problem of single diagnostic indicators. In real-world clinical diagnosis, in addition to scleral distance (area) indicators, there are many important evaluation indicators that need to be referred to, such as clock point, eyelid distance, etc. In future work, we will consider more relevant indicators as a diagnostic basis. We believe that the diagnostic accuracy of the system can be further improved after considering more indicators as the diagnostic basis.

5. Proactive Healthcare Service

The application of OMGMed for automatic OMG detection enables the early intervention of potential OMG patients and long-term monitoring of patients with diagnosed OMG. As shown in Figure 11, the usage scenario of the pilot study on OMGMed involves three types of parties, i.e., (1) myasthenia gravis clinics; (2) physical examination centers; and (3) families of diagnosed patients. In a real-world case, parties (2) and (3) might be located in one expert center. The staff members in the party (1) are myasthenia gravis experts who provide healthcare to patients. The workers in the party (2) are nurses or general medical practitioners who work primarily on physical examinations of large populations. However, their MG knowledge is limited. The party (3) is staffed by the diagnosed patients or the patient’s families.
The operation of the OMG diagnostic solution includes two phases, i.e., the screening phase and the monitoring phase. In the screening phase, whenever the potential patients (e.g., health checkers) go to the party (2) for checking, their face data are stored remotely in the database. At the same time, the myasthenia gravis diagnostic component is triggered. Sending the original images and diagnosis results to the expert doctors in the party (1), and if the expert doctors verify the results to be true, then the party (2) contacts the potential patient and informs him/her that he/she has OMG. Similarly, in the monitoring stage, the diagnosed patients in the party (3) can upload photos at home, if the diagnosis is aggravated, the expert doctor in the party (1) will contact the patient to seek medical treatment as soon as possible, or first remote intervention.
The usage scenario in Figure 10 shows that the multiple types of objects are loosely coupled together to enable high quality healthcare to reach remote regions, greatly reducing the cost of remote patient healthcare, while also improving the efficiency and quality of diagnosis by expert doctors.

6. Conclusions

A computer-aided diagnosis system—OMGMed is presented, which can auxiliary diagnosis of OMG through eye image segmentation. It is helpful for improving the diagnostic efficiency of doctors and reducing the cost of MG treatment for patients, thus promoting the popularization of MG medical resources in underdeveloped areas. Building on this, we conducted an empirical study focusing on “network structure” and “loss function” to refine eye image segmentation accuracy. The experiments demonstrated the efficacy of a hybrid loss function, and finally, we selected “nnUNet” + “CE + Iou + Boundary” as the segmentation model for our auxiliary diagnosis system. The Intersection over Union (MIOU) on the two datasets are 82.1% and 83.7%, respectively.
The real-world pilot study is reported, which is about the computer-aided auxiliary diagnosis system for OMG. By retrieving eye images from the database, conducting image segmentation and automatic indicator calculation, and returning the diagnosis results to the expert doctors or patients. The study has been applied to the myasthenia gravis clinic of Beijing Hospital, which effectively improves the accuracy rate of the expert doctors. It is worthwhile to be generalized and adapted to be used for solving OMG or other medical diagnosis problems with similar situations.

Author Contributions

Conceptualization, J.-J.Y., J.Y. and J.L.; methodology, C.Z. and J.L.; software, C.Z. and J.Z.; validation, C.Z., M.Z. and X.X.; formal analysis, C.Z.; investigation, L.Z.; resources, X.X. and J.-J.Y.; data curation, L.Z., W.C. and S.L.; writing—original draft preparation, C.Z.; writing—review and editing, C.Z. and X.X.; supervision, J.L. and J.-J.Y.; funding acquisition, J.-J.Y. and J.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by National High Level Hospital Clinical Research Funding grant number BJ-2023-111.

Institutional Review Board Statement

The study was conducted in accordance with the Declaration of Helsinki, and approved by the Ethics Committee of Beijing Hospital (protocol code 2023BJYYEC-226-01 and date of approval 2023-08-14).

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

The data presented in this study are openly available at the following URL/DOI: http://iris.di.ubi.pt/ accessed on 20 April 2023.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Global Myasthenia Gravis Therapeutics Market Size Status and Manufacturers Analysis. 2022. Available online: https://www.sohu.com/a/548235609_372052 (accessed on 16 March 2024).
  2. Ruiter, A.M.; Wang, Z.; Yin, Z.; Naber, W.C.; Simons, J.; Blom, J.T.; van Gemert, J.C.; Verschuuren, J.J.; Tannemaat, M.R. Assessing facial weakness in myasthenia gravis with facial recognition software and deep learning. Ann. Clin. Transl. Neurol. 2023, 10, 1314–1325. [Google Scholar] [CrossRef] [PubMed]
  3. Thanvi, B.; Lo, T. Update on myasthenia gravis. Postgrad. Med. J. 2004, 80, 690–700. [Google Scholar] [CrossRef] [PubMed]
  4. Antonio-Santos, A.A.; Eggenberger, E.R. Medical treatment options for ocular myasthenia gravis. Curr. Opin. Ophthalmol. 2008, 19, 468–478. [Google Scholar] [CrossRef] [PubMed]
  5. Nair, A.G.; Patil-Chhablani, P.; Venkatramani, D.V.; Gandhi, R.A. Ocular myasthenia gravis: A review. Indian J. Ophthalmol. 2014, 62, 985–991. [Google Scholar] [PubMed]
  6. Jaretzki III, A. Thymectomy for myasthenia gravis: Analysis of the controversies regarding technique and results. Neurology 1997, 48, 52S–63S. [Google Scholar] [CrossRef]
  7. Chen, J.; Tian, D.C.; Zhang, C.; Li, Z.; Zhai, Y.; Xiu, Y.; Gu, H.; Li, H.; Wang, Y.; Shi, F.D. Incidence, mortality, and economic burden of myasthenia gravis in China: A nationwide population-based study. Lancet Reg. Health- Pac. 2020, 5, 100063. [Google Scholar] [CrossRef] [PubMed]
  8. Banzi, J.F.; Xue, Z. An automated tool for non-contact, real time early detection of diabetes by computer vision. Int. J. Mach. Learn. Comput. 2015, 5, 225. [Google Scholar] [CrossRef]
  9. Muzamil, S.; Hussain, T.; Haider, A.; Waraich, U.; Ashiq, U.; Ayguadé, E. An Intelligent Iris Based Chronic Kidney Identification System. Symmetry 2020, 12, 2066. [Google Scholar] [CrossRef]
  10. Arslan, A.; Sen, B.; Celebi, F.V.; Uysal, B.S. Automatic segmentation of region of interest for dry eye disease diagnosis system. In Proceedings of the 24th Signal Processing and Communication Application Conference, SIU 2016, Zonguldak, Turkey, 16–19 May 2016; pp. 1817–1820. [Google Scholar]
  11. Liu, G.; Wei, Y.; Xie, Y.; Li, J.; Qiao, L.; Yang, J.j. A computer-aided system for ocular myasthenia gravis diagnosis. Tsinghua Sci. Technol. 2021, 26, 749–758. [Google Scholar] [CrossRef]
  12. Wang, C.; Li, H.; Ma, W.; Zhao, G.; He, Z. MetaScleraSeg: An effective meta-learning framework for generalized sclera segmentation. Neural Comput. Appl. 2023, 35, 21797–21826. [Google Scholar] [CrossRef]
  13. Proença, H.; Filipe, S.; Santos, R.; Oliveira, J.; Alexandre, L.A. The UBIRIS. v2: A database of visible wavelength iris images captured on-the-move and at-a-distance. IEEE Trans. Pattern Anal. Mach. Intell. 2009, 32, 1529–1535. [Google Scholar] [CrossRef] [PubMed]
  14. Long, J.; Shelhamer, E.; Darrell, T. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2015, Boston, MA, USA, 7–12 June 2015; pp. 3431–3440. [Google Scholar]
  15. Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional Networks for Biomedical Image Segmentation. In Proceedings of the Medical Image Computing and Computer-Assisted Intervention—MICCAI 2015—18th International Conference, Munich, Germany, 5–9 October 2015; Proceedings, Part III. Volume 9351, pp. 234–241. [Google Scholar]
  16. Badrinarayanan, V.; Kendall, A.; Cipolla, R. SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 39, 2481–2495. [Google Scholar] [CrossRef]
  17. Zhou, Z.; Siddiquee, M.M.R.; Tajbakhsh, N.; Liang, J. UNet++: A Nested U-Net Architecture for Medical Image Segmentation. In Proceedings of the Deep Learning in Medical Image Analysis—and—Multimodal Learning for Clinical Decision Support—4th International Workshop, DLMIA 2018, and 8th International Workshop, ML-CDS 2018, Held in Conjunction with MICCAI 2018, Granada, Spain, 20 September 2018; Proceedings. Volume 11045, pp. 3–11. [Google Scholar]
  18. Chen, L.; Zhu, Y.; Papandreou, G.; Schroff, F.; Adam, H. Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation. In Proceedings of the Computer Vision—ECCV 2018—15th European Conference, Munich, Germany, 8–14 September 2018; Proceedings, Part VII; Lecture Notes in Computer Science. Volume 11211, pp. 833–851. [Google Scholar]
  19. Qin, X.; Zhang, Z.; Huang, C.; Dehghan, M.; Zaïane, O.R.; Jägersand, M. U2-Net: Going deeper with nested U-structure for salient object detection. Pattern Recognit. 2020, 106, 107404. [Google Scholar] [CrossRef]
  20. Isensee, F.; Jaeger, P.F.; Kohl, S.A.; Petersen, J.; Maier-Hein, K.H. nnU-Net: A self-configuring method for deep learning-based biomedical image segmentation. Nat. Methods 2021, 18, 203–211. [Google Scholar] [CrossRef] [PubMed]
  21. Strudel, R.; Pinel, R.G.; Laptev, I.; Schmid, C. Segmenter: Transformer for Semantic Segmentation. In Proceedings of the 2021 IEEE/CVF International Conference on Computer Vision, ICCV 2021, Montreal, QC, Canada, 10–17 October 2021; IEEE: Piscataway, NJ, USA, 2021; pp. 7242–7252. [Google Scholar]
  22. Chen, J.; Lu, Y.; Yu, Q.; Luo, X.; Adeli, E.; Wang, Y.; Lu, L.; Yuille, A.L.; Zhou, Y. TransUNet: Transformers Make Strong Encoders for Medical Image Segmentation. arXiv 2021, arXiv:2102.04306. [Google Scholar]
  23. Fukushima, K. Neocognitron: A self-organizing neural network model for a mechanism of pattern recognition unaffected by shift in position. Biol. Cybern. 1980, 36, 193–202. [Google Scholar] [CrossRef] [PubMed]
  24. Minaee, S.; Boykov, Y.; Porikli, F.; Plaza, A.; Kehtarnavaz, N.; Terzopoulos, D. Image Segmentation Using Deep Learning: A Survey. IEEE Trans. Pattern Anal. Mach. Intell. 2022, 44, 3523–3542. [Google Scholar] [CrossRef] [PubMed]
  25. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, L.; Polosukhin, I. Attention is All you Need. In Proceedings of the Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, Long Beach, CA, USA, 4–9 December 2017; pp. 5998–6008. [Google Scholar]
  26. Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.; Heigold, G.; Gelly, S.; et al. An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. In Proceedings of the 9th International Conference on Learning Representations, ICLR 2021, Virtual, 3–7 May 2021. [Google Scholar]
  27. Lai, H.; Luo, Y.; Zhang, G.; Shen, X.; Li, B.; Lu, J. Toward accurate polyp segmentation with cascade boundary-guided attention. Vis. Comput. 2023, 39, 1453–1469. [Google Scholar] [CrossRef]
  28. Hsu, C.Y.; Hu, R.; Xiang, Y.; Long, X.; Li, Z. Improving the Deeplabv3+ model with attention mechanisms applied to eye detection and segmentation. Mathematics 2022, 10, 2597. [Google Scholar] [CrossRef]
  29. Liu, X.; Wang, S.; Zhang, Y.; Liu, D.; Hu, W. Automatic fluid segmentation in retinal optical coherence tomography images using attention based deep learning. Neurocomputing 2021, 452, 576–591. [Google Scholar] [CrossRef]
  30. Rahman, M.A.; Wang, Y. Optimizing Intersection-Over-Union in Deep Neural Networks for Image Segmentation. In Advances in Visual Computing, Proceedings of the 12th International Symposium, ISVC 2016, Las Vegas, NV, USA, 12–14 December 2016; Proceedings, Part I; Springer: Berlin/Heidelberg, Germany, 2016; Volume 10072, pp. 234–244. [Google Scholar]
  31. Milletari, F.; Navab, N.; Ahmadi, S. V-Net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentation. In Proceedings of the Fourth International Conference on 3D Vision, 3DV 2016, Stanford, CA, USA, 25–28 October 2016; IEEE Computer Society: Washington, DC, USA, 2016; pp. 565–571. [Google Scholar]
  32. Luo, Z.; Mishra, A.K.; Achkar, A.; Eichel, J.A.; Li, S.; Jodoin, P. Non-local Deep Features for Salient Object Detection. In Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, 21–26 July 2017; IEEE Computer Society: Washington, DC, USA, 2017; pp. 6593–6601. [Google Scholar]
  33. Cheng, B.; Girshick, R.B.; Dollár, P.; Berg, A.C.; Kirillov, A. Boundary IoU: Improving Object-Centric Image Segmentation Evaluation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2021, Virtual, 19–25 June 2021; Computer Vision Foundation. IEEE: Piscataway, NJ, USA, 2021; pp. 15334–15342. [Google Scholar]
  34. Guo, H.; Hu, S.; Wang, X.; Chang, M.; Lyu, S. Eyes Tell All: Irregular Pupil Shapes Reveal GAN-Generated Faces. In Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing, ICASSP 2022, Virtual, 23–27 May 2022; IEEE: Piscataway, NJ, USA, 2022; pp. 2904–2908. [Google Scholar]
  35. Mancini, M.; Akata, Z.; Ricci, E.; Caputo, B. Towards Recognizing Unseen Categories in Unseen Domains. In Computer Vision—ECCV 2020, Proceedings of the 16th European Conference, Glasgow, UK, 23–28 August 2020; Proceedings, Part XXIII; Springer: Berlin/Heidelberg, Germany, 2020; Lecture Notes in Computer Science; Volume 12368, pp. 466–483. [Google Scholar]
  36. You, A.; Kim, J.K.; Ryu, I.H.; Yoo, T.K. Application of generative adversarial networks (GAN) for ophthalmology image domains: A survey. Eye Vis. 2022, 9, 6. [Google Scholar] [CrossRef]
  37. Sorin, V.; Barash, Y.; Konen, E.; Klang, E. Creating artificial images for radiology applications using generative adversarial networks (GANs)—A systematic review. Acad. Radiol. 2020, 27, 1175–1185. [Google Scholar] [CrossRef]
  38. Cheong, H.; Devalla, S.K.; Pham, T.H.; Zhang, L.; Tun, T.A.; Wang, X.; Perera, S.; Schmetterer, L.; Aung, T.; Boote, C.; et al. DeshadowGAN: A deep learning approach to remove shadows from optical coherence tomography images. Transl. Vis. Sci. Technol. 2020, 9, 23. [Google Scholar] [CrossRef]
  39. Iqbal, T.; Ali, H. Generative Adversarial Network for Medical Images (MI-GAN). J. Med Syst. 2018, 42, 231:1–231:11. [Google Scholar] [CrossRef]
  40. Rammy, S.A.; Abbas, W.; Hassan, N.; Raza, A.; Zhang, W. CPGAN: Conditional patch-based generative adversarial network for retinal vessel segmentation. IET Image Process. 2020, 14, 1081–1090. [Google Scholar] [CrossRef]
  41. Yang, J.; Dong, X.; Hu, Y.; Peng, Q.; Tao, G.; Ou, Y.; Cai, H.; Yang, X. Fully automatic arteriovenous segmentation in retinal images via topology-aware generative adversarial networks. Interdiscip. Sci. Comput. Life Sci. 2020, 12, 323–334. [Google Scholar] [CrossRef]
  42. Goodfellow, I.J.; Shlens, J.; Szegedy, C. Explaining and Harnessing Adversarial Examples. In Proceedings of the 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, 7–9 May 2015. [Google Scholar]
  43. Madry, A.; Makelov, A.; Schmidt, L.; Tsipras, D.; Vladu, A. Towards deep learning models resistant to adversarial attacks. arXiv 2017, arXiv:1706.06083. [Google Scholar]
  44. Ma, L.; Liang, L. Adaptive Adversarial Training to Improve Adversarial Robustness of DNNs for Medical Image Segmentation and Detection. arXiv 2022, arXiv:2206.01736. [Google Scholar]
Figure 1. Diagram of ocular myasthenia gravis. (a) Right eye with ptosis. (b) Picture of patient’s face. (c) Normal left eye.
Figure 1. Diagram of ocular myasthenia gravis. (a) Right eye with ptosis. (b) Picture of patient’s face. (c) Normal left eye.
Bioengineering 11 00595 g001
Figure 2. The framework of OMGMed.
Figure 2. The framework of OMGMed.
Bioengineering 11 00595 g002
Figure 3. OMG indicator illustration. (a) Eyelid distance, distance between upper and lower eyelids. (b) Clock point. (c) Scleral area, distance between the edge of the iris and the corner of the eye.
Figure 3. OMG indicator illustration. (a) Eyelid distance, distance between upper and lower eyelids. (b) Clock point. (c) Scleral area, distance between the edge of the iris and the corner of the eye.
Bioengineering 11 00595 g003
Figure 4. Examples of eye segmentation results where green, red, blue, yellow and black pixels represent the pupil, iris, sclera, lacrimal caruncle and skin respectively.
Figure 4. Examples of eye segmentation results where green, red, blue, yellow and black pixels represent the pupil, iris, sclera, lacrimal caruncle and skin respectively.
Bioengineering 11 00595 g004
Figure 5. Architecture of CNNs.
Figure 5. Architecture of CNNs.
Bioengineering 11 00595 g005
Figure 6. Architecture of Transformer.
Figure 6. Architecture of Transformer.
Bioengineering 11 00595 g006
Figure 7. Boundary loss computation illustration. G d denotes Pixels from the ground truth border d width. P d denotes denotes Pixels from the prediction border d width.
Figure 7. Boundary loss computation illustration. G d denotes Pixels from the ground truth border d width. P d denotes denotes Pixels from the prediction border d width.
Bioengineering 11 00595 g007
Figure 8. Eye images segmentation results of patients with different network.
Figure 8. Eye images segmentation results of patients with different network.
Bioengineering 11 00595 g008
Figure 9. Loss of three hybrid modes on the private dataset.
Figure 9. Loss of three hybrid modes on the private dataset.
Bioengineering 11 00595 g009
Figure 10. A Comparison between doctors’ independent diagnosis and doctors’ diagnosis with OMGMed. The starting points of the arrows represent the results of the independent diagnosis, and the end points represent the results with the assistance of our method. The orange line represents the receiver operating characteristic (ROC) curve of our method.
Figure 10. A Comparison between doctors’ independent diagnosis and doctors’ diagnosis with OMGMed. The starting points of the arrows represent the results of the independent diagnosis, and the end points represent the results with the assistance of our method. The orange line represents the receiver operating characteristic (ROC) curve of our method.
Bioengineering 11 00595 g010
Figure 11. The usage scenario of the real-world application of OMGMed on eye image segmentation for automatic OMG diagnosis.
Figure 11. The usage scenario of the real-world application of OMGMed on eye image segmentation for automatic OMG diagnosis.
Bioengineering 11 00595 g011
Table 1. Indices for ocular myasthenia gravis.
Table 1. Indices for ocular myasthenia gravis.
Test ItemGrade
01234
Clock point11∼1 point10∼2 point9∼3 point8∼4 point7∼5 point
Scleral distance≤2 mm3∼4 mm5∼8 mm9∼12 mm>12 mm
Table 2. Network structure characteristics.
Table 2. Network structure characteristics.
Network NameCharacteristic
CNN-based
structure
FCN [14]Including only convolutional layers
U-Net [15]A contracting path and a symmetric expanding path
SegNet [16]The decoder uses pooling indices to perform non-linear upsampling
U-Net++ [17]Nested, dense skip pathways
Deeplabv3+ [18]Applying the depthwise separable convolution to both Atrous Spatial Pyramid Pooling and decoder modules
U2-Net [19]A two-level nested U-structure
nnUnet [20]Automatically configuring preprocessing, network architecture, training and post-processing
Transformer-based
structure
Segmenter [21]Extending the visual transformer (ViT) to semantic segmentation
TransUNet [22]Combining Transformer and U-Net Architecture
Table 4. Notation used in this paper.
Table 4. Notation used in this paper.
NotionDefinition
 mNumber of pixel classes
 NNumber of pixels
  y i j The true value of the ith pixel on class j
  y ^ i j Predicted probability of the ith pixel on class j
  w i j Weight of class j
 dPixel width of the boundary region
Table 5. Results for UBIRIS.V2 dataset.
Table 5. Results for UBIRIS.V2 dataset.
Network NameMIOU (%)MDice (%)MPrecision (%)MRecall (%)MF1 (%)MBIOU (%)Avg_time (s)
CNN-based
structure
FCN68.4079.2784.9678.0381.3550.390.0117s
U-Net70.1680.4488.3877.1682.3950.500.0142
SegNet74.0383.7188.4081.8985.0255.810.0136
U-Net++73.6983.4886.7883.1584.9355.100.0186
Deeplabv3+75.1084.6483.9688.0585.9656.360.0259
U2-Net73.7782.5483.1683.8983.5253.370.0152
nnUnet81.4388.7690.8388.3389.5659.430.0220
Transformer-based
structure
Segmenter72.4781.6587.4779.1383.0947.130.0108
TransUNet80.8988.5390.1088.3889.2357.720.0173
Bold means the data with the best performance.
Table 6. Results for private dataset.
Table 6. Results for private dataset.
Network NameMIOU (%)MDice (%)MPrecision (%)MReca (%)MF1 (%)MBIOU (%)Avg_time (s)
CNN-based
structure
FCN56.3367.9873.8269.7071.7038.040.0286
U-Net71.2480.8785.6480.2282.8450.640.0301
SegNet67.7378.3779.8580.4580.1546.930.0327
U-Net++68.4478.1782.4078.2080.2449.870.0332
Deeplabv3+72.1181.9780.4487.3183.7449.350.0433
U2-Net68.4977.7379.3679.2579.3039.810.0231
nnUnet82.6789.4490.0190.6390.3259.810.0320
Transformer-based
structure
Segmenter71.8780.9685.6279.8582.6344.080.0381
TransUNet81.6288.7189.0289.9589.4957.350.0271
Bold means the data with the best performance.
Table 7. Different hybrid loss function results for both datasets of nnUnet, where the left side and right of / denote the performance on the UBIRIS.V2 dataset and that on the private dataset, respectively. α , β , and γ are the weights of losses.
Table 7. Different hybrid loss function results for both datasets of nnUnet, where the left side and right of / denote the performance on the UBIRIS.V2 dataset and that on the private dataset, respectively. α , β , and γ are the weights of losses.
LossMIOU (%)MDice (%)MPrecision (%)MRecall (%)MF1 (%)MBIOU (%)Avg_time (s)
L C E 81.43/82.6788.76/89.4490.83/90.0188.33/90.6389.56/90.3259.43/59.810.0220/0.0320
α L C E + γ L B 81.77/83.4089.07/89.9690.79/90.3888.89/91.1889.83/90.7760.76/61.500.0291/0.0350
L W C E 82.08/82.3889.28/89.1988.55/88.4891.75/91.8590.12/90.1360.04/59.310.0240/0.0303
α L W C E + γ L B 82.41/83.1289.52/89.7390.10/89.2590.39/91.9390.24/90.5760.66/60.720.0312/0.0310
α L C E + β L I 81.63/82.9488.90/89.6391.12/90.2288.33/90.7089.70/90.4659.71/59.920.0241/0.0360
α L C E + β L I + γ L B 82.13/83.6489.29/90.0391.44/90.3488.63/91.2990.01/90.8160.44/61.750.0270/0.0320
α L C E + β L D 82.06/83.2189.25/89.7691.30/90.3488.70/90.9189.98/90.6360.45/60.900.0280/0.0310
α L C E + β L D + γ L B 82.10/83.4889.27/89.9591.81/90.5588.54/90.9489.99/90.7460.51/61.390.0301/0.0360
β L I + γ L B 69.16/70.7573.79/74.6675.02/74.3773.29/75.5774.14/74.9651.03/50.550.0350/0.0320
β L D + γ L B 69.16/67.7173.80/72.4374.95/73.2373.35/72.8574.14/73.0451.03/56.960.0320/0.0310
Bold means the data with the best performance.
Table 8. Different hybrid loss function results for both datasets of TransUNet, where the left side and right of / denote the performance on the UBIRIS.V2 dataset and that on the private dataset, respectively. α , β , and γ are the weights of losses.
Table 8. Different hybrid loss function results for both datasets of TransUNet, where the left side and right of / denote the performance on the UBIRIS.V2 dataset and that on the private dataset, respectively. α , β , and γ are the weights of losses.
LossMIOU (%)MDice (%)MPrecision (%)MRecall (%)MF1 (%)MBIOU (%)Avg_time (s)
L C E 80.91/81.6288.53/88.7190.10/89.0288.38/89.9589.23/89.4957.72/57.350.0173/0.0271
α L C E + γ L B 81.03/81.9888.64/88.9089.41/89.1789.27/90.1589.34/89.6657.80/58.340.0161/0.0289
L W C E 81.11/80.6788.72/88.1988.41/86.6390.65/91.5689.52/89.0257.43/54.940.0178/0.0288
α L W C E + γ L B 81.19/81.4088.79/88.6188.86/87.7290.08/91.289.42/89.4758.19/56.870.0167/0.0293
α L C E + β L I 80.99/81.8588.60/88.9389.86/88.5888.83/90.7789.34/89.6657.40/57.920.0171/0.0284
α L C E + β L I + γ L B 81.55/81.8989.02/88.9490.10/88.9289.27/90.6189.68/89.7658.43/58.550.0172/0.0273
α L C E + β L D 81.23/81.6888.80/88.7790.44/89.5388.60/89.5789.51/89.5557.97/57.640.0168/0.0283
α L C E + β L D + γ L B 81.24/81.7488.74/88.7489.13/89.4289.84/89.6089.48/89.5158.29/58.290.0169/0.0284
β L I + γ L B 70.12/81.1178.85/88.3583.90/88.6177.42/89.6280.53/89.1144.86/56.510.0174/0.0272
β L D + γ L B 70.11/81.5879.25/88.6781.19/89.4480.40/89.3780.79/89.4043.63/57.460.0174/0.0298
Bold means the data with the best performance.
Table 9. Different hybrid loss function results for both datasets of Deeplabv3+, where the left side and right of/denote the performance on the UBIRIS.V2 dataset and that on the private dataset, respectively. α , β , and γ are the weights of losses.
Table 9. Different hybrid loss function results for both datasets of Deeplabv3+, where the left side and right of/denote the performance on the UBIRIS.V2 dataset and that on the private dataset, respectively. α , β , and γ are the weights of losses.
LossMIOU (%)MDice (%)MPrecision (%)MRecall (%)MF1 (%)MBIOU (%)Avg_time (s)
L C E 75.10/72.1184.64/81.9783.96/80.4488.05/87.3185.96/83.7456.36/49.350.0259/0.0433
α L C E + γ L B 76.35/73.3485.61/83.2583.76/80.2289.86/89.7886.71/84.7358.24/51.780.0311/0.0412
L W C E 75.80/73.8885.20/83.5282.41/79.9690.73/90.5186.37/84.9157.14/51.300.0253/0.0425
α L W C E + γ L B 76.84/75.2285.95/84.6585.71/81.7688.33/90.5887.00/85.9458.67/54.400.0253/0.0424
α L C E + β L I 77.20/76.1486.24/85.0886.66/85.0087.60/87.8687.12/86.4058.97/56.060.0254/0.0365
α L C E + β L I + γ L B 77.42/76.4586.38/85.4287.10/84.3887.46/89.3087.28/86.7759.53/56.200.0252/0.0355
α L C E + β L D 76.59/75.6185.80/84.8486.46/84.6287.10/87.9086.78/86.2358.15/54.610.0253/0.0428
α L C E + β L D + γ L B 77.29/76.1386.29/85.2987.20/84.0087.26/89.2387.23/86.5359.30/55.710.0252/0.0429
β L I + γ L B 55.85/37.6863.36/42.7860.52/40.8668.05/46.5564.07/43.5240.14/21.810.0250/0.0426
β L D + γ L B 54.80/49.9662.63/58.7159.20/54.2468.25/67.3763.40/60.1038.13/27.900.0251/0.0407
Bold means the data with the best performance.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Li, J.; Zhu, C.; Zhao, M.; Xu, X.; Zhao, L.; Cheng, W.; Liu, S.; Zou, J.; Yang, J.-J.; Yin, J. OMGMed: Advanced System for Ocular Myasthenia Gravis Diagnosis via Eye Image Segmentation. Bioengineering 2024, 11, 595. https://doi.org/10.3390/bioengineering11060595

AMA Style

Li J, Zhu C, Zhao M, Xu X, Zhao L, Cheng W, Liu S, Zou J, Yang J-J, Yin J. OMGMed: Advanced System for Ocular Myasthenia Gravis Diagnosis via Eye Image Segmentation. Bioengineering. 2024; 11(6):595. https://doi.org/10.3390/bioengineering11060595

Chicago/Turabian Style

Li, Jianqiang, Chujie Zhu, Mingming Zhao, Xi Xu, Linna Zhao, Wenxiu Cheng, Suqin Liu, Jingchen Zou, Ji-Jiang Yang, and Jian Yin. 2024. "OMGMed: Advanced System for Ocular Myasthenia Gravis Diagnosis via Eye Image Segmentation" Bioengineering 11, no. 6: 595. https://doi.org/10.3390/bioengineering11060595

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop