Determination and Classification of Blood Types Using Image Processing Techniques
Determination and Classification of Blood Types Using Image Processing Techniques
net/publication/312494841
CITATIONS READS
2 7,005
4 authors:
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Joby Titus on 18 January 2017.
12
International Journal of Computer Applications (0975 – 8887)
Volume 157 – No 1, January 2017
agglutinated by any recipient’s antibodies, therefore they are When T is constant over an entire image, the preceding
known as universal donor. equation is referred as global thresholding. When the value of
T changes over an image, it is called as variable thresholding.
3. EXISTING BLOOD GROUP TEST The term local or regional thresholding is also used to denote
To work out blood group of a person, red cells of that person variable thresholding in which the value of T at any point (x,y)
are mixed with different antibody solutions. If, for example, in an image depends on properties of neighborhood of (x, y). If
the solution contains anti-B antibodies and the person has B T depends on the spatial coordinates (x, y) themselves, then
antigens on cells, it will clump together. If the blood does not variable thresholding is often referred as dynamic or adaptive
react to any of the anti-A or anti-B antibodies, it is blood thresholding. Thresholding may be single or multiple. In single
group O. A series of tests with different types of antibody can thresholding, the image consists of a single light object on a
be used to identify blood group. If the person has a blood dark background. But in multiple thresholding, image consists
transfusion, the blood of the person will be tested against a of two or more light objects on a dark background. This
sample of donor cells that contains ABO and RhD antigens. If multiple thresholding method classifies the pixel at (x,y) as
there is no reaction, donor blood with same ABO and RhD belonging to the background if f(x, y) ≤T1, to one object class
type can be used. It indicates that the blood has reacted with if T1 ≤ f(x, y) ≤T2 and to the other object class if f(x, y) ≥T2.
certain antibody and is therefore not compatible with blood
containing that kind of antibody If the blood doesn’t The threshold of a multiple threshold image is given by,
agglutinate, it indicates that blood doesn’t have antigens a if f(x, y) > 𝑇2
binding the special antibody in the reagent. In existing system,
g x, y = b if T1 < 𝑓(𝑥, 𝑦) ≤ 𝑇2--------------------------- (2)
blood group is determined manually. In this system, adding
c if f(x, y) ≤ T1
solutions such as anti-a, anti-b, anti-d to the three samples of
blood took place. After some time, agglutination may or may Where a, b and c are three distinct intensity values.
not occur. Depending upon the agglutination, blood group can
be determined by the person manually. Disadvantages of this 4.1 Types of Thresholding
system are more chances of human errors are possible. Only 4.1.1 Global thresholding:
experts can tell the blood type by seeing at the agglutination Generally in image processing, the preferred approach is to
process. use an algorithm capable of choosing a threshold
automatically based on image data. This thresholding is
4. PROPOSED SYSTEM known as global thresholding. In Images with uniform
In our proposed system, reagents are mixed with three samples contrast distribution of background and foreground like
of blood. After sometime, agglutination may or may not occur. document images, global thresholding is more appropriate.
After the formation of agglutination, the slide is captured as an The following iterative procedure is used in this technique.
image and allowed to process in MATLAB image processing
toolbox. By using this system, more chances of human errors 1. Select an initial estimate for the global threshold T.
can be reduced. Image processing techniques used for blood
group identification are 2. Segment the image using T. This will produce two
groups of pixels: G1, consisting of all pixels with
Pre-processing techniques intensity values greater than T and G2, consisting of
pixels with values less than or equal to T.
Thresholding
3. Compute the average intensity values m1 and m2 for
Morphological operations the pixels in regions G1 and G2 respectively.
HSL Luminance plane 4. Compute a new threshold value:
Quantification 1
T = 2 (m1 + m2) ----------------------------------- (3)
In this proposed work various pre-processing techniques such
as color plane extraction, gray conversion were used. Image Repeat steps 2 through 4 until the difference in T in
preprocessing can significantly increase the reliability of an successive iterations is smaller than a predefined value, ΔT.
optical inspection. Several filter operations which intensify or Parameter ΔT is used to control the number of iterations in
reduce certain image details enable an easier or faster situations where speed is an important issue. In general, the
evaluation. Users are able to optimize a camera image with just larger the ΔT is, the fewer iterations, the algorithm will
a few clicks. Filtering contains numerous image filters for perform. It can be shown that the algorithm converges in a
image optimization miscellaneous filter for edge enhancement, finite number of steps, provided that the initial threshold is
noise suppression, character modification, etc. Image chosen between the maximum and minimum intensity levels
processing includes It includes several functions for image in the image. In terms of segmentation, the algorithm works
processing. Contrast increase by static or dynamic binarisation, well in situations where there is a reasonably clear valley
lookup tables or image plane separation. Resolution reduction between the modes of the histogram related to objects and
via binning. Image rotation. An image f(x,y) is composed of background.
light objects on a dark background. This technique is used to 4.1.2 variable or local thresholding
extract the light objects from the dark background. It is done Global thresholding methods typically fail when the
by using a threshold value T. Any image point (x, y) at which background illumination is highly nonuniform. One solution
f(x,y) >T is called an object or foreground point; otherwise, the to this problem is to attempt to estimate the shading function,
point is called background point. use it to compensate for the nonuniform intensity pattern, and
The threshold of a binary image is defined as, then threshold the image using any global thresholding
methods. Another approach is used to compensate for
a, if f x, y > 𝑇 irregularities in illumination, or in cases where there is more
g x, y = ----------------------------------- (1)
b, if f x, y ≤ T than one dominant object intensity, is to use variable
13
International Journal of Computer Applications (0975 – 8887)
Volume 157 – No 1, January 2017
4.2.1 Dilation
Dilation is the process that grows or thickens the objects in an
image and is known as structuring element. Graphically, Fig 1: Steps for determining blood types
structuring elements can be represented either by a matrix of
0s and 1s or as a set of foreground pixels. The dilation of A by 5. METHODOLOGY AND ANALYSIS
B is set considering all the structuring element origin The image for analyses is collected from the laboratory and
locations where the reflected and translated B overlaps at least digital images stored in JPEG format. These images are pre-
one element. It is a convention in image processing that the processed using color plane extraction. The riginal slide test
first operand of AB be the image and the second operand is image is shown in figure.
the structuring element, which usually is much smaller than
the image.
4.2.2 Erosion
Erosion shrinks or thins objects in binary image. The erosion
of A by B is the set of all points z. Here, erosion of A by B is
the set of all structuring element origin locations where no
part of B overlaps the background of A. In image processing
applications, dilation and erosion are used most often in
various combinations. An image will undergo a series of Fig.2. Input image
dilations and erosions using the same, or sometimes different,
structuring elements. The most important combinations of 5.1 Color plane extraction
dilation and erosion are opening and closing. The color plane contains the color information in images. The
foreground and background color of each image has different
4.3 HSL luminance values. In this work only green color component is extracted
HSL luminance stands for Hue, Saturation and Luminance. because it contains the maximum value in the RGB color
Hue is expressed in a degree around a colour wheel, while plane. The green plane extraction is shown in figure.
saturation and brightness are set as a percentage. Shade uses a
standard window colour picker with a scale of 0 to 239(which
can be regarded as 1 to 240) for each quality, which makes
calculations easy. HSV stands for Hue, Saturation and Value.
A third model, common in computer vision applications, is
HIS. In each cylinder, the angle around the central vertical
axis corresponds to hue and saturation. Hue in HSL and HSV
refers to Saturation and differs dramatically. RGB devices has
unique HSL and HSV spaces Fig.3. Color plane Extraction
14
International Journal of Computer Applications (0975 – 8887)
Volume 157 – No 1, January 2017
5.2 Thresholding operation uniformly reduces the size of the objects in relation
It is the simplest method of image segmentation. From a gray to their background and dilation expands the size of the
scale image, thresholding is used to create binary images. The objects. By using dilation and erosion, secondary operations
gray scale samples are clustered as background and object. It like opening and closing can be done. Morphological
may be viewed as an operation that involves test against a operations are used to eliminate noise spikes and ragged
function T of the form edges. Closing operation is used to fill the holes and gaps. It is
the process of dilation which is followed by erosion. It can be
T = T x, y, p x, y , f(x, y) ----------------------------- (4) observed that the segmented image is filled using operation is
shown in Figure.
Where f(x, y) is a gray level at the point (x, y) and p(x,
y) denotes some local property of the point. A threshold
image is defined as,
1, if f x, y > 𝑇
g x, y = ------------------------------ (5)
0, if f x, y ≤ T
15
International Journal of Computer Applications (0975 – 8887)
Volume 157 – No 1, January 2017
7. REFERENCES
[1] Neha Srivathsa; Dhananjaya Dendukuri, “Automated
ABO Rh-D blood type detection using
smartphone imaging for point-of-care medical
diagnostics” IEEE Conference Publications, Year: 2016,
Pages: 4345 – 4348.
[2] Fabien Picot; Julien Pichette, "Imaging system based on
Fig 9. Quantification diffusive reflectance spectroscopy for bloodvessels
detection during brain biopsy procedure” IEEE
6. RESULTS Conference Publications,Year: 2016, Pages: 1 – 1
[3] Tejaswini.H.V, M.S. Mallikarjuna Swamy,
“Determination and classification of blood types using
image processing techniques” ITSI Transactions on
Electrical and Electronics Engineering (ITSI-TEEE)”,
Volume-2, Issue-2-2014, pp.29-33.
[4] Ana Ferraz, Filomena Soares “A Prototype for Blood
Typing Based on Image Processing” The Fourth
Fig.10. Sample blood sample analysis International Conference on Sensor Device Technologies
and Applications, Copyright (c) IARIA, 2013.
[5] Miss Hetal J.Vala, Prof.Astha Baxi “A Review on Otsu
Image Segmentation Algorithm” Volume 2, Issue 2,
February 2013.
[6] Miss.Madhuri, G.Bhamare “Automatic Blood cell
Analysis by using Digital Image processing:A
preliminary study”, Vol-2, Issue-9, September-2013.
[7] T.Romen Singh, Sudipta Roy, O.Imocha Singh, Tejmani
Sinam and Kh.Manglem Singh “A New Local Adaptive
Fig.11. Blood sample morphology analysis
Thresholding Technique in Binarization”, IJCSI
The method developed proves that it is effective and efficient International Journal of Computer Science Issues, Vol. 8,
method to detect the agglutination and determines the blood Issue 6, No 2, November 2011.
type of the patient accurately. The use of image processing
[8] Er.Nirpjeet kaur, Er.Rajpreet kaur, “A review on various
techniques enables automatic detection of agglutination and
methods of Image thresholding”, Er.Nirpjeet kaur et al. /
determines the blood type of the patient in a short interval of
International Journal on Computer Science and
time also helpful in emergency situations. In future it is
Engineering (IJCSE), Vol. 3 No. 10 October 2011.
intended to improve the system developed by making it
smaller so that it can be portable and incorporate GSM [9] Qingqiang Yang, Wenxiong Kang “General Research on
technology, to send a message to the mobile of technician of Image Segmentation algorithms”, I.J. Image, Graphics
the laboratory in order to avoid unnecessary travel. and Signal Processing, 2009, P.No:1-8.
[10] Khurram Khurshid, Imran Siddiqi, Claudie Faure, Nicole
Vincent “Comparison of Niblack inspired Binarization
methods for ancient documents” DDR, Volume 7247 of
SPIE, Page 1-10.
[11] M.R.Brown, P.Crim, “Organizing the antibody
identification process” Clin Lab Sci, Vol.20, 2007,
Pp.122-126.
IJCATM : www.ijcaonline.org
16