Open access peer-reviewed chapter

Neural Networks and Decision Trees For Eye Diseases Diagnosis

By L. G. Kabari and E. O. Nwachukwu

Submitted: April 5th 2012Reviewed: July 6th 2012Published: December 5th 2012

DOI: 10.5772/51380

Downloaded: 2839

1. Introduction

Clinical Decision Support Systems (CDSS) provide clinicians, staff, patients, and other individuals with knowledge and person-specific information, intelligently filtered and presented at appropriate times, to enhance health and health care [1]. Medical errors have already become the universal matter of international society. In 1999, IOM (American Institute of Medicine) published a report “To err is Human” [2], that indicated: First, the quantity of medical errors is incredible, the medical errors had already became the fifth lethal; Second, the most of medical errors occurred by the human factor which could be avoid via the computer system. Improving the quality of healthcare, reducing medical errors, and guarantying the safety of patients are the most serious duty of the hospital. The clinical guideline can enhance the security and quality of clinical diagnosis and treatment, its importance already obtained widespread approval [3]. In 1990, clinical practice guidelines were defined as “systematically developed statements to assist practitioner and patient decisions about appropriate health care for specific clinical circumstances” [4].

The clinical decision support system (CDSS) is any piece of software that takes as input information about a clinical situation and that produces as output inferences that can assist practitioners in their decision making and that would be judged as “intelligent” by the program’s users [5].

Artificial intelligence has been successfully applied in medical diagnosis. They have been used for skin disease diagnosis, fetal delivery, metabolic synthesis as demonstrated in [6,7 and 8]. Artificial neural networks are artificial intelligence paradigms; they are machine learning tools which are loosely modelled after biological neural systems. They learn by training from past experience data and make generalization on unseen data. They have been applied as tools for modelling and problem solving in real world applications such as speech recognition, gesture recognition, financial prediction, and medical diagnostics [9, 10, 11 and 12]. Backpropagation employs gradient descent learning and is the most popular algorithm used for training neural networks. Neural networks were recently viewed as ‘black boxes’ as they could not explain how they arrived to a particular solution. Knowledge extraction is the process of extracting valuable information from trained neural networks in the form of ‘if-then’ rules as shown in [13 and 14]. The extracted rules describe the knowledge acquired by neural networks while learning from examples.

The human eye is the organ which gives us the sense of sight allowing us to learn more about the surrounding world than we do with any of the other four senses. We use our eyes in almost every activity we perform whether reading, working, watching television, writing a letter, driving a car and in countless other ways. Most people probably would agree that sight is the sense they value more than all the rest.

A recent survey of 1,000 adults shows that nearly half - 47% - worry more about losing their sight than about losing their memory and their ability to walk or hear. But almost 30% indicated that they don't get their eyes checked. Many Americans are unaware of the warning signs of eye diseases and conditions that could cause damage and blindness if not detected and treated soon enough.

In spite of the high prevalence of vision disorders in this country, so far, few victims receive professional eye care due to one of the following reasons;

  • Specialist in eye diseases(ophthalmologist) are few and ophthalmology clinic are also few

  • Lack of knowledge that early professional eye care is needed when symptoms are suspected.

  • Inability to pay for the needed services.

Due to all of these, late detection of vision disorders and unnecessary loss of vision is encountered. But with a computer based system (expert system), over dependence on human expert can be minimized. This will go a long way to save time and furthermore early detection of eye disease can be adequately addressed. Cost for the services can also be reduced as a lot of unnecessary laboratory test may be avoided with the use of the proposed system.

This study classifies eye diseases using patient complaint, symptoms and physical eye examinations. The disease covered includes the following eye disease; Pink eye (conjunctivitis), Uveitis, Glaucoma, Cataract, Macular Degeneration, retinal detachment, Corneal ulcer, Color blindness, Far sightedness(hyperopia), Near sighteness(myopia), and Astigmatism.

We train artificial neural networks to classify eye diseases according to patient complain, symptoms and physical eye examination. We then use decision trees to extract knowledge from trained neural networks in order to understand the knowledge represented by the trained networks. Finally, we apply decision trees to build a tree structure for classification on the same sets of data sample we used to train neural networks earlier. In this way we combine neural networks and decision trees through training and knowledge extraction. The extracted knowledge from neural networks is transformed as rules which will help experts in understanding which combination of symptom, physical eye examination and patient’s complain constituents have a major role in the eye problem. The rules contain information for sorting eye diseases according to their symptoms, physical condition and complain from the patient and knowledge acquired by neural networks from training on previous samples.


2. Application of Neural network in Clinical decision Support System

These days the Artificial Neural Networks(ANN) have been widely used as tools for solving many decisions modeling problems. The various capabilities and properties of ANN like Non-parametric, Non-linearity, Input-Output mapping, Adaptivity make it a better alternative for solving massively parallel distributive structure and complex task in comparison of statistical techniques, where rigid assumptions are made about the model. Artificial Neural Networks being non-parametric, makes no assumption about the distribution of data and thus capable of “letting the data speak for itself”. As a result, they are natural choice for modeling complex medical problems where large database of relevant medical information are available [15].

In biomedicine, the assessment of vital functions of the body often requires noninvasive measurements, processing and analysis of physiological signals. Examples of physiological signals found in biomedicine include the electrical activity of the brain-the electroencephalogram (EEG), the electrical activity of the heart-the electrocardiogram (ECG), the electrical activity of the eye-i.e. PERG and EOG-respiratory signals, blood pressure and temperature signals [16].

Often, biomedical data are not well behaved. They vary from person to person, and are affected by factors such as medication, environmental conditions, age, weight, mental and physical state. Consequently, clinical expertise is often required for a proper analysis and interpretation of medical data. This has led to the integration of signal processing with intelligent techniques such as artificial neural networks (ANN), expert systems and fuzzy logic to improve performance [16].

ANN has been proposed as a reasoning tool to support clinical decision-making since 1959 [17]. Some problems encountered have led to significant developments in computer science, but it was only during the last decade of the last century that decision support systems have been routinely used in clinical practice on a significant scale [16].

The literature reports several applications of ANNs to the recognition of a particular pathology. For example, cancer diagnosis [18 and 19], automatic recognition of alertness and drowsiness from electroencephalography [20], predictions of coronary artery stenosis [21], analysis of Doppler shift signals [22 and 23], classify and predict the progression of thyroid-associated ophthalmopathy [24], diabetic retinopathy classification [25], saccade detection in EOG recordings [26] and PERG classification [22].

In this research we apply a hybrid of Neural Network and decision Tree to classify eye diseases according to patient complain, symptoms and physical eye examination. The aim is to help the ophthalmologist interpret the output of the examination systems easily and diagnose the problem accurately [27-29].

2.1. Artificial Neural Networks

Artificial Neural networks learn by training on past experience using an algorithm which modifies the interconnection weight links as directed by a learning objective for a particular application. A neuronis a single processing unit which computes the weighted sum of its inputs. The output of the network relies on cooperation of the individual neurons. The learnt knowledge is distributed over the trained networks weights. Neural networks are characterized into feedforward and recurrent neural networks. Neural networks are capable of performing tasks that include pattern classification, function approximation, prediction or forecasting, clustering or categorization, time series prediction, optimization, and control. Feedforward networks contain an input layer, one or many hidden layers and an output layer. Fig. 1 shows the architecture of a feedforward network. Equation (1) shows the dynamics of a feedforward network.


where Sljis the output of the neuron j in layerl, Sil-1is the output of neuron j in layer l-1(containing m neurons) and Wjilthe weight associated with that connection with j. θjlis the internal threshold/bias of the neuron and giis the sigmoidal discriminant function.

Figure 1.

The architecture of the feedforward neural network with one hidden layer.

Backpropagation is the most widely applied learning algorithm for neural networks. It learns the weights for a multilayer network, given a network with a fixed set of weights and interconnections. Backpropagation employs gradient descent to minimize the squared error between the networks output valuesand desired valuesfor those outputs. The goal of gradient descent learning is to minimize the sum of squared errors by propagating error signals backward through the network architecture upon the presentation of training samples from the training set. These error signals are used to calculate the weightupdates which represent the knowledge learnt in the network. The performance of backpropagation can be improved by adding a momentum term and training multiple networks with the same data but different small random initializations prior to training. In gradient descent search for a solution, the network searches through a weight space of errors. A limitation of gradient descent is that it may get trapped in a local minimum easily. This may prove costly in terms for network training and generalization performance.

In the past, research has been done to improve the training performance of neural networks which has significance on its generalization. Symbolic or expert knowledge is inserted into neural networks prior to training for better training and generalization performance as demonstrated in [13]. The generalization ability of neural networks is an important measure of its performance as it indicates the accuracy of the trained network when presented with data not present in the training set. A poor choice of the network architecture i.e. the number of neurons in the hidden layer will result in poor generalization even with optimal values of its weights after training. Until recently neural networks were viewed as black boxes because they could not explain the knowledge learnt in the training process. The extraction of rules from neural networks shows how they arrived to a particular solution after training.

2.2. Knowledge Extraction from Neural Networks: Combining Neural Networks with Decision trees

In applications like credit approval and medical diagnosis, explaining the reasoning of the neural network is important. The major criticism against neural networks in such domains is that the decision making process of neural networks is difficult to understand. This is because the knowledge in the neural network is stored as real-valued parameters (weights and biases) of the network, the knowledge is encoded in distributed fashion and the mapping learnt by the network could be non-linear as well as non-monotonic. One may wonder why neural networks should be used when comprehensibility is an important issue. The reason is that predictive accuracy is also very important and neural networks have an appropriate inductive bias for many machine learning domains. The predictive accuracies obtained with neural networks are often significantly higher than those obtained with other learning paradigms, particularly decision trees.

Decision trees have been preferred when a good understanding of the decision process is essential such as in medical diagnosis. Decision tree algorithms execute fast, are able to handle a high number of records with a high number of fields with predictable response times, handle both symbolic and numerical data well and are better understood and can easily be translated into if-then-else rules.

The goal of knowledge extraction is to find the knowledge stored in the network’s weights in symbolic form. One main concern is the fidelity of the extraction process, i.e. how accurately the extracted knowledge corresponds to the knowledge stored in the network. There are two main approaches for knowledge extraction from trained neural networks: (1) extraction of ‘if-then’ rules by clustering the activation values of hidden state neurons and (2) the application of machine learning methods such as decision trees on the observation of input-output mappings of the trained network when presented with data. We will use decision trees for the extraction of rules from trained neural networks. The extracted rules will explain the classification and categorization of different eye diseases according to symptoms.

In knowledge extraction using decision trees, the network is initially trained with the training data set. After successful training and testing, the network is presented with another data set which only contains inputs samples. Then the generalisation made by the network upon the presentation is noted with each corresponding input sample in this data set. In this way, we are able to obtain a data set with input-output mappings made by the trained network. The generalisation made by the output of the network is an indirect measure of the knowledge acquired by the network in the training process. Finally, the decision tree algorithm is applied to the input-output mappings to extract rules in the form of trees.

Decision trees are machine learning tools for building a tree structure from a training dataset of instances which can predict a classification given unseen instances. A decision tree learns by starting at the root node and selects the best attributes which splits the training data. The root node then grows unique child nodes using an entropy function to measure the information gained from the training data. This process continues until the tree structure is able to describe the given data set. Compared to neural networks, they can explain how they arrive to a particular solution. We will use decision trees to extract rules from the trained neural networks.

2.3. Decision Tree

A decision tree(DT) is a decision support tool that uses a tree-like graph or model of decisions and their possible consequences, including chance event outcomes, resource costs, and utility. It is one way to display an algorithm. Decision trees are commonly used in operations research, specifically in decision analysis, to help identify a strategy most likely to reach a goal. Another use of decision trees is as a descriptive means for calculating conditional probabilities.

Decision tree learning is a method commonly used in data mining. The goal is to create a model that predicts the value of a target variable based on several input variables. Each interior node corresponds to one of the input variables; there are edges to children for each of the possible values of that input variable. Each leaf represents a value of the target variable given the values of the input variables represented by the path from the root to the leaf.

A tree can be "learned" by splitting the source set into subsets based on an attribute value test. This process is repeated on each derived subset in a recursive manner called recursive partitioning. The recursion is completed when the subset at a node all has the same value of the target variable, or when splitting no longer adds value to the predictions. In data mining, trees can be described also as the combination of mathematical and computational techniques to aid the description, categorisation and generalisation of a given set of data. Data comes in records of the form:


The dependent variable, Y, is the target variable that we are trying to understand, classify or generalise. The vector xis composed of the input variables, x1, x2, x3 etc., that are used for that task.

DT offers a structured way of decision making [29,30]. A DT is characterized by an ordered set of nodes. Each of the internal nodes is associated with a decision function of one or more features.. DT approach can generate if -thenrules. Specific DT methods include Classification and Regression Trees (CART), Chi Square Automatic Interaction Detection (CHAID), ID3 and C4.5. C4.5 which is the extension of ID3[31,32] is very useful in this work. C4.5 Decision Tree is based on Information theory, that is it uses information theory to select features which give the greatest information gain or decrease of entropy [31]. Information gain is the informational value of creating a branch in a decision tree based on the given attribute using entropy theory.

2.4. Anatomy of the Eye

The eye is made up of numerous components. Figure 1 shows the anatomy of the eye.

Figure 2.

Anatomy of the eye (Source:

  • Cornea: clear front window of the eye that transmits and focuses light into the eye

  • Iris: colored part of the eye that helps regulate the amount of light that enters

  • Pupil: dark aperture in the iris that allows light to go through into the back of the eye

  • Lens: transparent structure inside the eye that focuses light rays onto the retina

  • Retina: nerve layer that lines the back of the eye, senses light, undergoes complex chemical changes, and creates electrical impulses that travel through the optic nerve to the brain

  • Macula: small central area in the retina that contains special light-sensitive cells and allows us to see fine details clearly

  • Optic nerve: connects the eye to the brain and carries the electrical impulses formed by the retina to the visual cortex of the brain

  • Vitreous: clear, jelly-like substance that fills the middle of the eye

2.5. Some eye disease conditions

Some eye disease conditions are shown in the figure3 to figure10 below:

Figure 3.

Glaucoma (Source:

Figure 4.

Cataract (Source:

Figure 5.

Macular degeneration (Source:

Figure 6.

Conjunctivitis (Source:

Figure 7.

Uveitis (Source:

Figure 8.

Keratoconus (Source:

Figure 9.

Blepharitis (Source:

Figure 10.

Corneal ulcer (Source:

3. Eye Diseases Diagnosis

We developed a clinical decision support system which bases its diagnosis on the patient complain, symptoms and physical eye examinations, and uses multilayer feedforward networks with a single hidden layer. Backpropagation algorithm is employed for training the networks in a supervised mode.

The eye diseases selected for diagnosis are as shown in table1. The designed neural network consists mainly of three layers: an input layer, a single hidden layer, and an output layer. The input layer has a total of 22 inputs plus the fixed bias input. These inputs consist of patient complaint, symptoms and physical eye examinations as may either be observed by the ophthalmologist or complained by the patients (i.e. X1, X2,..., X22). The output layer consists of 12 outputs indicating the diagnosed diseases (i.e. d1, d2,..., d13). Table1 shows the selected eye diseases for diagnosis and their symptom and signs as may be complained by patient or observed by the specialist while table2 shows the input variables for the system.

We ran 10 trial experiments with randomly selected 80% of the available data for training and the remaining 20% for testing the networks generalization performance. The learning rate of the network in gradient descent learning was 0.5. The network topology used was as follows: 22 neurons in the input layer for each symptom and signs for the eye disease, 9 neurons in the hidden layer and 13 neurons in the output layer representing each eye disease as shown in Fig. 2. We carried out some sample experiments on the number of hidden neurons to be used in the networks for this application. The results demonstrate that 9 neurons in the hidden layer were sufficient for the network to learn the training samples. The neural network was trained until one of the three following stopping criteria was satisfied:

  1. On 100% of the training examples, the activation of every output unit was within 0.2 of the desired output, or

  2. a network had been trained for 500 epochs, or

  3. a network classified at least 98% of the training examples correctly, but had not improved it's ability to classify the training after ten epochs

S/NEye DiseaseSigns(patient complain, symptoms and eye condition or cause)
1CataractsLoss of visual acuity, loss of contrast sensitivity, contours shadows and color vision are less vivid, advanced age, bright light or antiglare sunglass may improve vision, poor night vision.
2GlaucomaPainless, decrease in peripheral field of view, halos around light, redness of eye, hereditary, aging may also cause it.
3Macular DegenerationBlurred vision, distorted images, missing letters in words, difficulty in reading, Trouble discerning colors, slow recovery of visual function after exposure to bright light, loss in contrast sensitivity, advanced age(66-74), Hereditary.
4Pink eye(conjunctivitis)Red or pink color eye, itching, blurred image, gritty feeling, irritation, watering of eye
5UveitisRedness of eye, blurred vision, sensitivity to light(photophobia), dark floating sport in visual field, eye pain, blurred vision improves with blinking, discomfort after long period of concentrated use of eye(watching television, using computer or reading).
6Retinal detachmentExperience of flashes of light and floater in visual view, feeling heaviness in the eye, central visual loss, blind spot in view.
7Corneal ulcerRedness of eye, pains of foreign bodies in the eye, pus/thick discharge from the eye, blurred vision, sensitivity to bright light, swollen eyelid, white or grey round spot on the cornea.
8KeratoconusDistorted vision, loss of vision focus, contact less could not improve vision
9BlepharitisBurning of foreign bodies sensation, itching, sensitivity to light, redness of eye, red and swollen eyelid, blurred vision, dry eye.
10Color blindnessProblem discerning colors, hereditary, aging.
11Farsightedness(hyperopia)Blurred vision for close object, aging, contact lens may improves vision
12Nearsightedness(myopia)Blurred vision at distant, good vision for close object.
13AstigmatismBlurred vision, steamy appearing cornea, hereditary, may be corrected with contact lens

Table 1.

Eye Diseases and their signs (patient complain, symptoms and eye condition).

Input variablesVariable Meaning
X1Pains in the eye
X2Redness or pink color of eye
X3Bright light or antiglare sunglasses improves vision
X4Poor night vision
X5Family histories of the eye problem
X6Decrease in peripheral field of view
X7Age greater than 45 years
X8Blurred vision
X9Blurred vision improves with eye blinking
X10Distorted vision
X11Cloudy substance formed in front of eye lens
X12Slow recovery of vision after exposure to bright light
X13Irritation, itchy, scratchy or burning sensation of eye
X14Discomfort after long concentration use of eye
X15Trouble discerning colors
X16Floaters in eye, flashes of light, halos around light
X17Watering or discharge from eye
X18Swelling of eye
X19Steamy appearing cornea of eye
X20Sensitivity to light (photophobia)
X21Blurred vision for distant objects
X22Blurred vision for close objects

Table 2.

Input Variables and their Meaning.

The backpropagation algorithm with supervised learning was used, which means that we provide the algorithm with examples of the inputs and outputs we want the network to compute, and then the error (difference between actual and expected results) is calculated. The idea is to reduce this error, until the ANN learns the training data. The training begins with random weights, and the goal is to adjust them so that the error will be minimal. The activation function of the artificial neurons in ANNs implementing the backpropagation algorithm is given as follows[33]:


Where: xiare the inputs, wjiare the weights, Ojx,ware the actual outputs, djare the expected outputs and η - learning rate.

Figure 11.

The neural network topology used for diagnosing the eye diseases which contain attribute information of 22 signs and symptoms. Each neuron in the input layer represents a particular sign or symptom. The neurons in the output layer represent the eye disease. Please note that all weight link interconnections are not shown in this diagram.

In this work, we used the C++ programming language in programming neural networks. Data mining and machine learning software tools such as ‘Weka’ can also be used for classification using neural networks.

4. Experimental Results

4.1. Data Set

The data set used for the training and testing of the system was collected from Linsolar Eye Clinic, Port Harcourt and Odadiki eye clinic, Port Harcourt all in Nigeria. The total data is 400 from which 320 samples (80%) are randomly chosen and used as training patterns and tested with 80 instances (20%) of the same data set. The data set consist of evenly distributed men and women. Samples also consider age randomly collected from 18 years to 70 years.

4.2. Rule Extraction from the ANN

As in Figure 12 it can be seen that both decision trees and neural networks can be easily converted into IF THEN Rulesor we can simply convert neural networks into decision trees. In this work we use the networks architecture as shown in figure11 together with backpropagation algorithm with supervise learning.

Decision trees are machine learning tool for building a tree structure from a training dataset. A Decision tree learns by starting at the root node and select the best attributes which splits the training data [13]. Compared to neural networks they can explain how they arrive to a particular solution [34]. Hence, it usefulness in clinical decision support system as it may be use to support the expert in his delicate decision making or use as training tools for younger ophthalmologists. A typical decision tree extracted from the neural network in this work is shown in Figure 13.

To simplify complicated drawing the input variables that was shown in table1 may be combined to form conjunctions and negations which may also be used to generate the Decision Tree for some of the eye diseases as shown in Table 3.

Figure 12.

Extracting decision trees from neural networks.

Input variablesVariable MeaningInput variablesVariable Meaning
NOT X1No pains in eyeNOT X18No swelling of eye
X1 and X2Pains and redness of eyeX1 and X18Pains and swelling of eye

Table 3.

Some Additional variables for the Decision Tree.

The following rule sample sets are then obtained from the decision tree of Figure 13:

  1. IF(X1 AND X2) and X18 and X20 and X8 and X11 and X17 THENCornel Ulcer

  2. IF(X1 AND X2) and NOTX18 and X16 and X20 and X8 and X9 and X14 THENUveitis

  3. IF(X1 AND X2) and NOTX18 and X16 and X6 and X5 and X7 THENGlaucoma

  4. IFNOTX1 and X8 and X10 and X5 and X12 THENMuscular Degeneration

  5. IFNOTX1 and X8 and X2 and X13 and X17 THENPink Eye

These rule sets are easily explain to means:

  1. IFthere is pains and redness of eye and swelling of eye and eye is sensitive to bright light and there is blurred vision and cloudy substance are formed in front of eye lens THENthe eye problem is Cornel Ulcer

  2. IFthere is pains and redness of eye and no swelling of eye and there are floater or flashes of light and eye is sensitive to bright light and there is blurred vision and the blurred vision improves with blinking of eye and there is discomfort after long concentrated use of eye THENthe eye problem is Uveitis

  3. IF there is pains and redness of eye and no swelling of eye and there are floater or flashes of light and there are decrease in peripheral field of view and there is recorded family history of the eye problem and patient age is greater than 45 years THENthe eye problem is Glaucoma

  4. IFthere is no pains or redness of the eye and there is blurred and distorted vision and there is recorded history of the family history of the eye problem and slow recovery of vision after exposure to bright light THENthe eye problem is Muscular Degeneration

  5. IFthere is no pains of the eye and the eye is red and there is blurred vision and the eye is itchy or scratchy and there is watering discharge of the eye THENthe eye problem is Pink Eye.

Figure 13 shows an illustration of the extracted decision tree for some of the eye diseases.

Figure 13.

Decision tree for some the eye disease.

4.3. Performance Analysis of the system

To justify the performance of our diagnostic system, we conducted two analyses. The first is using a general performance scheme. Secondly, we carried out a number of tests at random using various physical eye examinations and patient’s complain to see whether it agree with what it suppose to be.

4.3.1. Performance Benchmark

The proposed Neural Networks and Decision Tree for Eye Disease Diagnosis (NNDTEDD) architecture relies on a piece of software for easy eye disease diagnosis. The principles underlying diagnostic software are grounded in classical statistical decision theory. There are two sources that generate inputs to the diagnostic software: disease (H0) and no disease (H1). The goal of the diagnostic software is to classify each diagnostic as disease or no disease. Two types of errors can occur in this classification:

  1. Classification of disease as normal (false negative); and

  2. Classification of a normal as disease (false positive).

We define:

Probability of detection PD=Pr(classify into H1|H1 is true), or

Probability of false negative =1-PD.

Probability of false positivePF=Pr(classify into H1|H0 is true).

Let the numerical values for the no disease (N) and disease (C) follow exponential distributions with parameters λNandλC, λN>λC, respectively. Then we can write the probability of detection PDand probability of false positive PFas

PD=tλCe-λC xdx=e-λCtE7
PD=tλNe-λN xdx=e-λNtE8

Thus PD can be expressed as a function of PF as

PD = PFr E9

Where r = λFN is between 0 and 1.

Consequently, the quality profile of most detection software is characterized by a curve that relates its PD and PF, known as the receiver operating curve (ROC) [35]. ROC curve is a function that summarizes the possible performances of a detector. It visualizes the trade - off between false alarm rates and detection rates, thus facilitating the choice of a decision functions. Following the work done in [36], Figure 14 shows sample ROC curves for various values of r.

Figure 14.

ROC curves for different r.

The smaller the value of r the steeper the ROC curve and hence the better the performance. The performance analysis of the NNDTEDD algorithms was carried out using MATLAB software package (MATLABR, 2009R) and the results compared with the collected data for cornel ulcer, uveitis, and glaucoma Figure 15, Figure 16 and Figure 17, respectively.

Figure 15.

ROC curves for Cornel Ulcer diagnosis.

Figure 16.

ROC curves for Uveities diagnosis.

Figure 17.

ROC curves for Glaucoma diagnosis.

4.3.2. Performance of the system using Random Tests

In testing the NNDTEDD, fifty different tests from the data sets for testing the system were carried out at random using various eye conditions and physical eye examinations combinations and the results compared with the expected result of the NNDTEDD. Where there was a match, success was recorded. In situations where there was no match failure were recorded. The total number of success = 46. Total number of failure = 4. Total number of test was 50.

Percentage succcess=4650×100=92E10
percentage failure=450×100=8%E11

5. Conclusion

The research presented a framework for diagnosing eye diseases using Neural Networks and Decision Trees. This research extended common approaches of using a neural network or a decision tree alone in diagnosing eye diseases. We developed a hybrid model called Neural Networks Decision Trees Eye Disease Diagnosing System (NNDTEDDS). Neural networks have been successful in the diagnosis of eye diseases according to various symptoms and physical eye conditions. Decision trees have been useful in knowledge extraction from trained neural networks. They have been a means for knowledge discovery. We have obtained rules which explain the diagnosis of eye diseases according to various symptoms and physical eye conditions; these rules explain the knowledge acquired in neural networks by learning from previous samples of symptoms and physical eye conditions. The extracted rules can be used to explained how an eye disease is diagnosed hence removing the opacity in neural network alone. The extracted rules can also be used to train younger ophthalmologists. The proposed system was able to achieve a high level of success using the hybrid model of neural networks and decision tree technique. A success rate of 92% was achieved. This infers that combination of neural networks and decision tree technique is an effective and efficient method for implementing diagnostic problems.


6. Recommendations

This work is recommended to medical experts (ophthalmologists) as an aid in the decision making process and confirmation of suspected cases. Also, a non expert will still find the work useful in areas where prompt and swift actions are required for the diagnosis of a given eye disease covered in the system. Medical practitioners who operate in areas where there are no specialist (ophthalmologist) can also rely on the system for assistance.


We thank Dr. Monday Nkadam of the University of Port Harcourt Teaching Hospital for checking and correcting some of the symptoms that were used in the system. The authors also thank the staff of Linsolar and Odadiki eye clinic, Port Harcourt for using their data in training and testing the system.

© 2012 The Author(s). Licensee IntechOpen. This chapter is distributed under the terms of the Creative Commons Attribution 3.0 License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

How to cite and reference

Link to this chapter Copy to clipboard

Cite this chapter Copy to clipboard

L. G. Kabari and E. O. Nwachukwu (December 5th 2012). Neural Networks and Decision Trees For Eye Diseases Diagnosis, Advances in Expert Systems, Petrica Vizureanu, IntechOpen, DOI: 10.5772/51380. Available from:

chapter statistics

2839total chapter downloads

More statistics for editors and authors

Login to your personal dashboard for more detailed statistics on your publications.

Access personal reporting

Related Content

This Book

Next chapter

Heuristics for User Interface Design in the Context of Cognitive Styles of Learning and Attention Deficit Disorder

By Cecilia Sosa Arias Peixoto, Sandra S. Boarati and Cleberson E. Forte

Related Book

First chapter

Expert System for Identification of Sport Talents: Idea, Implementation and Results

By Vladan Papić, Nenad Rogulj and Vladimir Pleština

We are IntechOpen, the world's leading publisher of Open Access books. Built by scientists, for scientists. Our readership spans scientists, professors, researchers, librarians, and students, as well as business professionals. We share our knowledge and peer-reveiwed research papers with libraries, scientific and engineering societies, and also work with corporate R&D departments and government entities.

More About Us