• Users Online: 82
  • Print this page
  • Email this page

 Table of Contents  
Year : 2012  |  Volume : 2  |  Issue : 3  |  Page : 169-175

Extracting, recognizing, and counting white blood cells from microscopic images by using complex-valued neural networks

1 Faculty of Computer Engineering and IT University of Payame Nour, Tehran, Iran
2 Iranian Research Organization for Science and Technology (IROST), Tehran, Iran
3 Faculty of New Sciences and Technologies, University of Tehran, Tehran, Iran

Date of Submission23-Feb-2012
Date of Acceptance11-Jun-2012
Date of Web Publication20-Sep-2019

Correspondence Address:
Hamid Akramifard
Faculty of Computer Engineering and IT University of Payame Nour, Tehran
Login to access the Email id

Source of Support: None, Conflict of Interest: None

DOI: 10.4103/2228-7477.112144

Rights and Permissions

In this paper a method related to extracting white blood cells (WBCs) from blood microscopic images and recognizing them and counting each kind of WBCs is presented. In medical science diagnosis by check the number of WBCs and compared with normal number of them is a new challenge and in this context has been discussed it. After reviewing the methods of extracting WBCs from hematology images, because of high applicability of artificial neural networks (ANNs) in classification we decided to use this effective method to classify WBCs, and because of high speed and stable convergence of complex-valued neural networks (CVNNs) compare to the real one, we used them to classification purpose. In the method that will be introduced, first the white blood cells are extracted by RGB color system's help. In continuance, by using the features of each kind of globules and their color scheme, a normalized feature vector is extracted, and for classifying, it is sent to a complex-valued back-propagation neural network. And at last, the results are sent to the output in the shape of the quantity of each of white blood cells. Despite the low quality of the used images, our method has high accuracy in extracting and recognizing WBCs by CVNNs, and because of this, certainly its result on high quality images will be acceptable. Learning time of complex-valued neural networks, that are used here, was significantly less than real-valued neural networks.

Keywords: Color system and feature vector, complex-valued neural networks, white blood cell

How to cite this article:
Akramifard H, Firouzmand M, Moghadam RA. Extracting, recognizing, and counting white blood cells from microscopic images by using complex-valued neural networks. J Med Signals Sens 2012;2:169-75

How to cite this URL:
Akramifard H, Firouzmand M, Moghadam RA. Extracting, recognizing, and counting white blood cells from microscopic images by using complex-valued neural networks. J Med Signals Sens [serial online] 2012 [cited 2022 Jun 29];2:169-75. Available from: https://www.jmssjournal.net/text.asp?2012/2/3/169/112144

  Introduction Top

One of the today's challenges in medical science is recognizing diseases by recognizing and counting white blood cells. White blood cells are divided into two main groups (Granulocytes and A granulocytes) and five final groups (Neutrophils, Eosinophils, and Basophiles belong to the first whole group and Lymphocytes and Monocytes belong to the second whole group).

Existence of red blood cells with high quantity beside white blood cells makes the recognizing difficult. And the variety of white blood cells (in size and type) increases this difficulty. [1]

In [Figure 1] all kinds of white blood cells and their classification are shown. The proportion of each one of white blood cells in a healthy and mature person is in this way; Neutrophils: 58.5%, Eosinophils: 3%, Basophiles: 0.5%, Lymphocytes: 34% and Monocytes: 4%. Changes in each one of these globules' quantity can indicate to specific diseases which their on-time and careful reorganization can have a special effect on their perfect conquer. [1]

In this article we try to introduce a plenary method, which proceed to extract, recognize and count the white blood cells in blood microscopic images with various qualities of color and resolution by complex-valued neural networks' helps.
Figure 1: The picture of all kinds of white blood cells and their groups[2]

Click here to view

In the second section of this article, previous related works has been presented. In third section, globule extracting by using the RGB color system [3] will be explained. And in fourth section, feature extracting and recognizing has been presented after introducing complex-valued back-propagation. And we do the scientific conclusions and the real implementation by using Matlab software.

  Related Works Top

WBCs are recognized by automatic machines; for example, cell counter and other method based on electro-chemical methods or electro-physical based on laser methods, electric resistance and etc. on the blood instance by high cost. [4] Among these, the methods "Watershed", [5] "Gabor filter", [6] "Active contours" [7] and "Gradient vector flow", [8] etc. are also usable methods which are explained briefly in continuous.

In the method based on watershed algorithm, first one image for demarcation is prepared by distance function. Then we segment the picture by using above algorithm and a recursive Post Processing procedure. In the method which uses the Gabor filter, one Gabor filter bank is designed for distinguishing the border between WBCs and RBCs which their tissue is deferent from each other. In this bank, because of non-existence of dominant direction in the globules' tissue, the used direction is more than the usual quantity and they are few versus frequency's quantity because the image's dimensions are small. Also, is proposed one method for determining the first place of the curve in "Active Contour" method by using the nucleus's information. In this method, we use a version of "Active Contour" which is based on the image's gradient and has suitable results.

In practice, we implement the methods like Gram-Schmidt is for apportioning the nuclear areas (which the result of implementing this method on a hematology image, is an image which has the most amount of light in desirable areas, means the WBC's nucleus areas, and the less amount of light in other areas.), Deformable algorithms (snake algorithm) for segmentation Cytoplasmic areas, and comparative algorithm for finding the best primary contour for the snake algorithm, and by artificial neural networks and Support Vector Machine (SVM) is obtained precision between 90% and 96%. [9],[10]

In using the method Granulometry on the based diameter of the recognized parts in image and omitting the not needed parts, [11] if other parts change because of disease access and similar things there is possibility for errors. The best acquired conclusion up until now belonged to the "Active Contour" method, and the quickest one belonged to the "Watershed" method. [4]

  Globules Extraction Top

Here, we extract the addresses from blood's microscopic images which WBCs exist there. In the reviews done on these images, the difference of color and size among WBCs and other blood cells was in the way that seems by using these features we can separate the WBCs from other cells. In [Figure 2], there is a microscopic image which has 5 white blood cells of Neutrophil kind.
Figure 2: Blood microscopic image with 5 Neutrophils which is combined of some images with different qualities

Click here to view

In this method, first we change image's size to a determined size, then we use the point that "in blood's images, white blood cells in the blue part have noticeable differences with the other cells" and we peruse all of image's pixels values, and if the value of each spot's blue color is more than a constant number, we make some changes in it by using equation (1).

In above equation x (kk, jj,3) are the pixels of the first image's blue color page, x1 (kk, jj,3) are the pixels of blue color page of the acquired image of changes in first image's pixels. The result of implementing the above transformation on [Figure 2] is shown in [Figure 3].

Then we average values of three color planes of all points of new image (Thresholding), and we put 1 for the pixels which their average of their three colors is less than the average value plus a constant, and we put 0 for the other pixels. Output image is shown in [Figure 4].
Figure 3: The output image of equation (1)

Click here to view
Figure 4: Thresholding image

Click here to view

Every color we can see is compose of three colors (Red, Green and Blue) and change in each of them will change whole view of the color we can see. For example in [Figure 5] we see changes in each color of an image.
Figure 5: Effect of change in each channel of an image; (a) Original image; (b) Original image with Blue channel minus 100 (c) Original image with Green channel minus 100, and (d) Original image with Red channel minus 100

Click here to view

Finally, the acquired white coherent spots from previous section which their values is more than a determined value, indicates a white blood cell. The result of noticing this issue is shown in [Figure 6].
Figure 6: The extracted white blood cells from Figure 2

Click here to view

The noticeable point here is, as we know that the WBCs mainly divided into two groups (Granulocyte and Agranulocyte), but noticing the less quality of existing images, recognizing this feature is almost impossible, and we classify them in section 4 without regard to this feature.

  Extracting Feature and Recognizing By Complex-Valued Back-Propagation Neural Network Top

Extracting Feature

In this section we put the extracted WBC from the image in the center of one square with a side equal to the size of acquired square to the basic square which is here 100 × 100. Then, we blacken the background spots which is here those out-of-edge spots (we assign 0 to them) and we whiten the spots which are in the image (we assign 1 to them).

Edge's spots and radial lines

Here we get the ratio of surrounded spots in image's edges to the whole square's spots and we name it "a", and also we attained the all edge's spots number and name it "b". We drew some lines in the radial form from the square's centre, which is now so close to the gravity centre of object. We drew these until they interrupt the edge at spots, we save the strike spots' coordinates (and if they don't bop the edge, the square's extreme spots) in a vector. And then we save the distance between strike spots and the centre in another vector and then we normalize it (r). We arrange the normal acquired vector in the ascendant way name it "R". The number of the drawn radial lines and also normalizing expanse is related to the system resources and also to the needed delicacy.

Concentric squares

After doing all above stages and extracting the selected square which its size has been determined, we draw some concentric squares from that center (in the way that each square's side is just two pixels bigger than the previous square) until they interrupt the image's edges in some spots. And this time we put the spots' number in order from the first circle to the last circle in a vector and then we name the vector "C".

Color's real histogram

Here instead of using image's gray level histogram, we use the histogram which is emanated from all three color sheet in the RGB color system. Its result is a vector which by dividing each color level's range to 3 parts we get 27 elements for the histogram, which every level of them are shown in [Table 1]. These 27 elements will be saved in a vector and they are demonstrator for possible colored levels for this histogram. After extracting the histogram, we normalize it (by natural logarithm) and save it in another vector, equation (2), which is shown in the [Figure 7] and after arranging in the ascendant layout (because of the color conversion which we mention above, we arrange the histogram in order to have less effective color conversion in the main object), we name it "H", equation (3). The histogram's levels value is determined noticing the system's resources and the needed delicacy.
Figure 7: Comparing the gray histogram with the colored one

Click here to view
Table 1: Various colored levels for histogram

Click here to view

In above equations h is real color histogram and H is sorted of h.

We set all above vectors in a vector and after natural logarithm; we normalize them as equations (4).

In above equations S0 is extracted feature vector, S1 is output of natural logarithm of S0 and S is normalized S1.

Recognition by Complex-valued Back-ProPagation and Counting

Introduction to complex-valued back-propagation

Complex-valued Back-ProPagation is a multi layer artificial neural network, which the three-layer kind of it (with 1 hidden layer and 1 output unit) has been shown in [Figure 8], that instead of use of real value, it uses complex valued for input, output, weights or some of them or all of them and use complex values for activation function.
Figure 8: A three layer back-pro pagation, with 1 hidden layer and 1 output layer[12]

Click here to view

In every neuron from the network after achieving that neuron's net input for output making we should use an activation function. One high usage of activation functions in artificial neural network that we use in complex-valued neural network is tangent-hyperbolic (tanh), shown at [Figure 9]. We use this activation function here. Naturally we learn network by real-imaginary activation function type of tanh (discrete type of CVBP), we explain it in (5).
Figure 9: Tanh activation function[13]

Click here to view

Where fR_I is real-imaginary activation function (fR is real part of activation function and fγ is imaginary part of activation function) and u is input vector to function.

We use a CVBP here that has one hidden layer and one output layer, use real values to input and output and use complex values to weights and functions. Naturally use of real values to input and output do not dubious totality of problem, because real values are subset of complex values. Net input to hidden layer is vector "S" attained from (4).

Where U m is net input, w m R is real part of weight, w m I is imaginary part of weight from m-th unit of hidden layer, X is real part of input vector and Y is imaginary part of input vector. Output of every hidden neuron is attained by (7) equation.

Where H m is output of m, f is activation function. Input of net to the output attained by (8).

Where S is net input to output, V R is real part of weight, V I0 is imaginary part of weight, H R is real part of output , HI is imaginary part of output. Output attained by (9).

Where O is output of CVBP, g is activation function. Output error is attained by (10).

Where Dk is error of output unit, DV weight change vector for output unit, Z is output of hidden layer, sech(.)^2 (secant-hyperbolic) activation function's derivation, Y is temporal output, α is learning rate and T is desired output. Hidden layer's error also attained by (11).

Where (.) * is conjugate transpose, DW is weight change vector in hidden layer, Din
is temporal error vector of output of hidden layer, D is hidden layer's error vector, Z is output of hidden layer, (.).^a means power by "a" of every member of vector separately and in is input vector.

Using complex-valued back-propagation neural networks for recognizing

Here, the image extracted feature vectors are sent to a two-layer CVBP neural network for classification. The aim groups which are here 5 groups (all kinds of white blood cells) are trained for the determined network and then experimented. In fact, we send vector S, the acquired from previous sections (which is the final vector), to a CVBP neural network for recognizing the group which the image is belonged to (first for training and at last for experimenting).

The images which are used for this system, has just one main part. And after extracting the edge and making the selected square and acquiring the explained vectors in previous sections, we determine each object's group. Here we used 85 image with resolution about 250 × 350, in 5 groups of white blood cells (including: 16 images of Basophils, 12 images of Eosinophils, 23 images of Lymphocytes, 10 images of Monocytes and 24 images of Neutrophils). Using the CVBP which was done in a amount of more than 20000 iterations with 167 elements input vector (equal to the attained vector from equation (4), including the results of colorful histogram, concentric squares, radial lines, edge points number and the proportion of the into-object spots to image's whole spots) and 87 hidden unit and one output. By training several times from the end of network's previous trainings we can train the data perfectly. The question answer of network about [Figure 2] is in this way:

In [Figure 2], we can see 5 Neutrophils which in the system's answer to the question about it, 4 Neutrophils and 1 Basophil are recognized and counted. This error is because of the image's less quality, and of course this errors are found in this system rarely.

In this training, we have used 85 images which approximately 25 percent of images, which are 20 images, as the test images, and we have used 60 images, for training. By the method which we explained above, we make the amounts of final output with the error average less than 0.5% near to the desired amounts of output. For example, if the aim is 0.9, the final output will be between 0.895 and 0.905. This is a desirable amount for training the pattern recognition in neural networks.

In the [Table 2] result of learning extracted WBCs by the CVNN and RVNN have been compared, purpose of "Output value precision percent" at the table is average of all value of 100*(final output-desired output)/ desired output.
Table 2: Comparison complex-valued neural networks and real-valued neural networks and summary of result of white blood cells learning to a artificial neural network

Click here to view

As one could see in [Table 2], time of per iteration for CVNNs is less than RVNNs and CVNNs can approach desired output values better than RVNNs, but both ANNs have recognized every 20 test patterns.

In [Figure 10] three WBCs has been shown, and in [Figure 11] extracted WBCs has been shown. As can see in this image there are one Basophile, one Lymphocyte and one Neutrophil, that our system recognized them properly. Some of the images in this paper are available at the State University of New Jersey. [14]
Figure 10: A picture include one Basophile, one Lymphocyte and one Neutrophil

Click here to view
Figure 11: Extracted WBCs from Figure 10

Click here to view

  Conclusion Top

In this article, we presented a method on the base of RGB color system for extracting WBCs from microscopic images, which we extract successfully about 98.8 percent of them (Using the above method, it was just one error in extracting WBCs among 85 experiment samples, which was contemplating one red blood cell in the title of as a WBC. This shows the amount of extracting success for these images, equals to 100-(1/85)*100=98.8) by concentrating on the blue part of this colorful system. And by training it to a complex-valued back-propagation network, we extracted each one of 5 white blood cells groups. Finally, we illustrate the number of each type of WBCs as output.

One of the advantages of the method which is used in this article is the possibility of working on variety kinds of blood's microscopic images with different qualities in resolution and color. Which makes this system (with some scrimp changes) usable in many of blood microscopic images collections.

  References Top

Hoffbrand AV, Moss PA, Pettit JE. Essential hematology, 5 th ed. United States: Wiley-Blackwell; 2006.  Back to cited text no. 1
Available from: http://www.laboratoryscience.persianblog.ir/post/275 [Last accessed on Feb, 2012].  Back to cited text no. 2
In: Gonzalez RC, Woods RE, editors. Digital image processing, 3 rd ed. United States: Prentice Hall; 2006.  Back to cited text no. 3
Zamani F, SafaBakhsh R, Detect the white blood cells in microscopic images of human healthy blood, MSc Thesis 101321, Faculty of Electrical and Computer. Tehran, Iran: Amir Kabir University; 2007.  Back to cited text no. 4
Nguyen HT, Worring M, van den Boomgaard R. Watersnakes: Energy-driven watershed segmentation. IEEE Trans Pattern Anal Mach Intell 2003;25:330-42.  Back to cited text no. 5
Safabakhsh R, Zamani F. "A robust multi-orientation Gabor based system for discriminating touching white and red cells in microscopic blood image", computer engineering and IT Dpt. Tehran, Iran: AmirKabir University of Technology; 2003.  Back to cited text no. 6
Ray N, Acton ST. Motion gradient vector flow: An external force for tracking rolling leukocytes with shape and size constrained active contour. IEEE Trans Med Imaging 2004;23:1466-78.  Back to cited text no. 7
Ray N, Acton ST. Tracking rolling leukocytes with motion gradient vector flow, accepted in Asilomar conference on signals, systems, and computers. Pacific Grove, CA, IEEE, conference, 1948:1952 Vol.2, 2003.  Back to cited text no. 8
Rezatofighia SH, Zadeha HS. Automatic recognition of five types of white blood cells in peripheral blood. Comput Med Imaging and Graph 2011;35:333-43.  Back to cited text no. 9
Zoroufchi RA, Soltanianzadeh H, To'fighi SH. Semi-automatic identification of five types of white blood cell images of hematology, MSc Thesis 40517, Faculty of Electrical and Computer. Tehran, Iran: Tehran University; 2009.  Back to cited text no. 10
Habibzadeh M, Krzyak A, Fevens T, Sadr A. Counting of RBCs and WBCs in noisy normal blood smear microscopic images. Proc SPIE 2011;7963:79633I6.  Back to cited text no. 11
Zhang H, Zhang C, Wu W. Convergence of batch split-complex back propagation algorithm for complex-valued neural networks, Hindawi publishing corporation discrete dynamics in nature and society. 2009. 16 pages.  Back to cited text no. 12
Hirose A. Complex-valued neural networks, distinctive features, Studies in Computational Intelligence. SCI 2006;32:17-41.Available from: http://www.lifesci.rutgers.edu/~babiarz/bloodtx.htm [Last accessed on Feb 2012].  Back to cited text no. 13
Saki N, Emam SJ, Pedram M. Atlas of hematology: With the preparation and evaluation techniques of blood. Tehran, Iran: Khosravi and Dibaj; 2011.  Back to cited text no. 14

  Authors Top

Hamid Akramifard received his B.S degree in software engineering from Karaj Payame Noor University, karaj, Iran, in 2009. He is now M.S student in software engineering in Tehran Payame Noor university, Iran. His research interests include image processing, fractals in image processing and complex-valued artificial neural networks, medical image and audio signal processing.

Mohammad Firouzmand received his M.S. degree in Medical Engineering in 1992 and his Ph.D. degree in signal processing in Institute National Poly- technique de Grenoble (INPG), France, in 2007. His research interests include Bio-instruments, signal processing, medical image and audio signal processing, and he has published several research papers in these areas.

Reza Askari Moghadam received his M.S. degree in Control Engineering and his Ph.D. degree in Electronic Engineering in 1999 and 2006 respectively. His research interests include MEMS Devices, Design of Digital Circuits and Systems, Growth and Characterization of Semiconductor Materials, Neural Networks and Fuzzy Systems, and he has published several research papers in these areas


  [Figure 1], [Figure 2], [Figure 3], [Figure 4], [Figure 5], [Figure 6], [Figure 7], [Figure 8], [Figure 9], [Figure 10], [Figure 11]

  [Table 1], [Table 2]

This article has been cited by
1 Recent computational methods for white blood cell nuclei segmentation: A comparative study
Alan R. Andrade,Luis H.S. Vogado,Rodrigo de M.S. Veras,Romuere R.V. Silva,Flávio H.D. Araujo,Fátima N.S. Medeiros
Computer Methods and Programs in Biomedicine. 2019; 173: 1
[Pubmed] | [DOI]
2 Quantitative evaluation of blood cells using a neural network on a microfluidic chip
E. Glushkova,V. Glushkov
IOP Conference Series: Materials Science and Engineering. 2018; 420: 012141
[Pubmed] | [DOI]


Similar in PUBMED
   Search Pubmed for
   Search in Google Scholar for
 Related articles
Access Statistics
Email Alert *
Add to My List *
* Registration required (free)

  In this article
  Related Works
  Globules Extraction
   Extracting Featu...
   Article Figures
   Article Tables

 Article Access Statistics
    PDF Downloaded45    
    Comments [Add]    
    Cited by others 2    

Recommend this journal