Open Access

Dynamic graph cut based segmentation of mammogram

  • S. Pitchumani Angayarkanni1Email author,
  • Nadira Banu Kamal2 and
  • Ranjit Jeba Thangaiya3

Received: 22 July 2015

Accepted: 23 July 2015

Published: 12 October 2015


This work presents the dynamic graph cut based Otsu’s method to segment the masses in mammogram images. Major concern that threatens human life is cancer. Breast cancer is the most common type of disease among women in India and abroad. Breast cancer increases the mortality rate in India especially in women since it is considered to be the second largest form of disease which leads to death. Mammography is the best method for diagnosing early stage of cancer. The computer aided diagnosis lacks accuracy and it is time consuming. The main approach which makes the detection of cancerous masses accurate is segmentation process. This paper is a presentation of the dynamic graph cut based approach for effective segmentation of region of interest (ROI). The sensitivity, the specificity, the positive prediction value and the negative prediction value of the proposed algorithm are determined and compared with the existing algorithms. Both qualitative and quantitative methods are used to detect the accuracy of the proposed system. The sensitivity, the specificity, the positive prediction value and the negative prediction value of the proposed algorithm accounts to 98.88, 98.89, 93 and 97.5% which rates very high when compared to the existing algorithms.


Fuzzification Graph cut Otsu’s method and ROC


The population based cancer registry evidently shows from the various statistics, that the incidence of breast cancer is rapidly rising, amounting to a significant percentage of all cancers in women. Breast cancer is the commonest cancer in urban areas in India and accounts for about 25–33% of all cancers in women. Over 50% of the breast cancer patients in India, being in stages 3 and 4 will definitely face the survival problem (Hassanien and Ali 2011). The survival rate can be increased only through early diagnosis. Image processing technique together with data mining is used for extraction and analysis of the ROI. Tumor can be classified into three categories normal, benign and malignant. A normal tumor is a mass of tissue which exists at the expense of healthy tissue. Malignant tumor has no distinct border. They tend to grow rapidly, increasing the pressure within the breast cells and can spread beyond the point from which they originate. Thus they grow faster than benign tumors and cause serious health problems if, left unnoticed. Benign tumors are composed of harmless cells and they have clearly defined borders. They can be completely removed and are unlikely to recur. MRI mammogram images taken after the appropriate segmentation of the tumor make classification of tumor into malignant, benign and normal a difficult task, due to complexity and variation in tumor tissue characteristics like its shape, size, grey level intensities and location. Effective segmentation techniques results in accurate classification of such cancerous masses.

Data acquisition

A database of 1,528 mammograms, originating from the mammography image analysis society (MIAS), digital database for screening mammography, University of South Florida DDSM Resource, LLNL/UCSF database (Lawrence Livermore National Laboratories (LLNL), University of California at San Francisco) and Nijmegen digital mammogram database were used for the study.


Image preprocessing and enhancement

The main objective behind the preprocessing step is to enlarge the intensity difference between objects and background. Preprocessing technique increases the optical inspection of an image. The proposed approach improves the image data by suppressing unwanted distortions and enhance the important image features. This will produce reliable representations of breast tissue structures. The fuzzy transformation function for computing the fuzzy plane value P is defined as follows:
  • α = min

  • β1 = (α + γ)/2

  • β2 = (max + γ)/2

  • γ = max/2

The histogram equalization of the gray levels in the original image can be characterized using five parameters:(α, β1, γ, β2, max). The aim is to decrease the gray levels below β1, and above β2. Intensity levels between β1 and γ, and β2 and γ are stretched in opposite directions towards the mean γ (Fig. 1).
Fig. 1

Histogram of the input image.


Step 1: Fuzzification:

The following fuzzy rules are used for contrast enhancement:


If α ≤ ui < β1 then P = 2 ((ui − α)/(γ − α))2


If β1 ≤ ui < γ then P = 1 − 2 ((ui − γ)/(γ − α))2


If γ ≤ ui < β2 then P = 1 − 2((ui − γ)/(max − γ))2


If β2 ≤ ui < max then P = 2 ((ui − γ)/(max − γ))2

where ui = f(x,y) is the ith pixel intensity

Step 2: Fuzzy Modification

Step 3: Defuzzification

The quality of the preprocessed image is to be checked with the following parameters like peak signal to noise ratio (PSNR), noise standard deviation (NSD), mean square error (MSE), equivalent number of looks (ENL).

Image segmentation and ROI extraction

The region of interest i.e. the tumor region is segmented using the Graph cut method. The main purpose of using this method for segmentation is that it segments the mammogram into different mammographic densities. It is useful for risk assessment and quantitative evaluation of density changes. Apart from the above advantage it produces the contour (closed region) or a convex hull which is used for analyzing the morphological and novel features of the segmented region. The above technique results in efficient formulation of attributes which helps in classification of the ROI into benign, malignant or normal. Graph cuts have been used in recent years for interactive image segmentation (Hassanien and Badr 2003). The core ideology of graph cuts is to map an image onto a network graph, and construct an energy function on the labeling, and then do energy minimization with dynamic optimization techniques. This study proposes a new segmentation method using iterated graph cuts based on multi-scale smoothing. The multi-scale method can segment mammographic images with a stepwise process from global to local segmentation by iterating graph cuts. The modified graph cut approach used by K. Santle Camilus (Hassanien and Badr 2003) is implemented in this project.

Steps involved in graph cut segmentation are:
  1. 1.

    Form a graph

  2. 2.

    Sort the graph edges

  3. 3.

    Merging regions based on threshold

From the mammogram image a graph G = (V, E) is constructed such that V represents the pixel values of the 3 × 3 image and E represents the edges defined between the neighboring pixels. The weight of any edge W(Vi, Vj) is a measure of dissimilarity between the pixels Vi and Vj. The weight for an edge is measured by means of considering the Euclidian distance between the two pixels Vi and Vj (Ertas et al. 2001; Shah et al. 2011; Masek et al. 2001; Thamaraichelvi and Yamuna 2013; Jayadevappa et al. 2009; Benfield et al. 2007; Elnakib et al. 2011). It is represented by the equation
$$ {\text{W}}\left( {{\text{Vi}},{\text{Vj}}} \right) = \sqrt {(\varvec{xi} - \varvec{xj})^{2} + (\varvec{yi} - \varvec{yj})^{ 2} } $$
$$ {\text{Vi}} = \left( {{\text{xi}},{\text{yi}}} \right)\quad {\text{Vj}} = \left( {{\text{xj}},{\text{yj}}} \right) $$
  1. 1.

    Sort the edges in ascending order of their weights such that W(e1) ≤ W(e2).

  2. 2.

    Pick one edge ei in the sorted order from ei to en where ei is between two groups of pixels which determines whether to merge the two groups of pixel to form a single group or not. Each vertex is considered as a group. The two groups which satisfies the merge criteria are merged together. The different groups of pixels representing different regions or objects are obtained.

  3. 3.
    Determining the merge criteria: When the pixels of a group have intensity values similar to the pixels of the other group, then intuitively the calculated IRM between these groups should be small. The expected smaller value of the IRM to merge these two regions is tested by comparing it with the dynamic threshold. Hence, the merge criterion, to merge the two regions, R 1 and R 2, is defined as:
    $$ {\text{Merge}}\left( {{\text{R}}_{ 1} ,{\text{R}}_{ 2} } \right),\quad {\text{if IRM}}\left( {{\text{R}}_{ 1} ,{\text{R}}_{ 2} } \right) \le DT({\text{R}}1,R2) $$
Figure 2 specifies the weighted calculation applied to the input image. Figure 3 shows how graph cut method is applied on a 3 × 3 image. Figure 4 shows the stage by stage output of the proposed method and the segmented region is shown in Fig. 5.
Fig. 2

Weight calculation for the 3 × 3 matrix.

Fig. 3

Graph cut approach.

Fig. 4

a Input image, b ROI, c segmented boundaries, d edge, e pectoral muscle identification indicated by red color, f ground truth value represented by white.

Fig. 5

Segmented image.

Performance analysis

Performance measure of the proposed mathematical approach at each stage was estimated.


Tabulation in Table 1 clearly shows a high PSNR value which shows that the image is highly enhanced (Camilus et al. 2010).
Table 1

PSNR tabulation




\( \gamma \)


Nature of filter








The Table 2 below depicts the interpretation between the two approaches using the quantitative measures to determine the overall classification accuracy (Zhang et al. 2012; Annamalai et al. 2009; Ramaswamy and Rose 2009; Peng et al. 2010; Artan et al. 2012).
Table 2

Segmentation technique comparision


Hassanien method

Proposed method

Target to background contrast measure based on standard deviation



Target to background contrast measure based on entropy



Index of fuzziness



Fuzzy entropy






Segmentation accuracy

Segmentation accuracy is depicted in Table 3.
Table 3

Segmentation accuracy metrics





Positive prediction value




Area under curve


Negative prediction value


Computational efficiency

Table 4 clearly depicts the computational efficiency of the proposed method is efficient compared to the other existing technique.
Table 4

Computational efficiency of the proposed method



System specification

Computational time based on implementation

Rough set approach

Hassanien and Ali (2011)

Intel Pentium® CPU B950 Processor


32-bit OS

Windows 7




Bojar and Nieniewski (2008)


Shape and texture feature

Zakeri et al. (2012)


Shape, edge-sharpness, and texture features

Mu et al. (2008)


Proposed method

Angayarkanni et al. (2002)


Metrics for evaluating the segmentation technique includes

The region-based criteria mutually compare the machine segmented regions with the correct ground truth regions.

Let A(I, J) denote the machine segmented region and B(I, J) denotes the ground truth region then the region overlap acceptance is controlled by the threshold k = 0.75 then

Region overlap Local refinement error
$$ {\text{E}}\left( {{\text{A}},{\text{B}},{\text{k}}} \right) = {{\left| {{\text{R}}\left( {{\text{A}},{\text{k}}} \right)/{\text{R}}\left( {{\text{B}},{\text{k}}} \right)} \right|} \mathord{\left/ {\vphantom {{\left| {{\text{R}}\left( {{\text{A}},{\text{k}}} \right)/{\text{R}}\left( {{\text{B}},{\text{k}}} \right)} \right|} {{\text{R}}\left( {{\text{A}},{\text{k}}} \right)}}} \right. \kern-0pt} {{\text{R}}\left( {{\text{A}},{\text{k}}} \right)}} $$

Edgel matching Overlay the original with segmented image and compute correspondence via min-cost assignment on bipartite graph.

The F-measure value is shown in Fig. 6.
Fig. 6



The proposed mathematical approach yields a high level of accuracy within a minimum period of time that confirms the efficiency of the algorithm. The GUI based CAD system was developed using Scilab and R2. The segmentation speed accounts to 6 ms using graph cut based Otsu’s thresholding. The main goal of classifying the tumors into benign, malignant and normal is achieved with a great accuracy compared to other techniques because of the implementation of the accurate segmentation technique employed. The proposed technique is computationally efficient as specified in the tabulation above. Further the complexity of the algorithm in asymptotic sense is equivalent to o(log n).


Authors’ contributions

A mathematical model for effective detection and segmentation of cancerous masses has been proposed. All authors read and approved the final manuscript.



Compliance with ethical guidelines

Competing interests The authors declare that they have no competing interests.

Open AccessThis article is distributed under the terms of the Creative Commons Attribution 4.0 International License (, which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

Authors’ Affiliations

Department of Computer Science, Lady Doak College
Department of M.C.A., TBAK College
Department of M.C.A., Karunya University


  1. Angayarkanni SP, Kamal NB, Thavavel V (2012) Automatic detection and classification of cancerous masses in mammogram. In: Third international conference on computing communication and networking technologiesGoogle Scholar
  2. Annamalai M, Guo D, Susan M, Steiner J (2009) An oracle white paper: oracle database 11 g DICOM medical image supportGoogle Scholar
  3. Artan Y, Haider MA, Langer DL, van der Kwast TH, Evans AJ, Yang Y et al (2012) A boosted Bayesian multiresolution classifier for prostate cancer detection from digitized needle biopsies. IEEE Trans Biomed Eng 59:1205–1218View ArticleGoogle Scholar
  4. Benfield MC, Grosjean P, Culverhouse PF, Irigoien X, Sieracki ME, Lopez-Urrutia A et al (2007) RAPID: research on automated plankton identification. Oceanography 20:172–187View ArticleGoogle Scholar
  5. Bojar K, Nieniewski M (2008) Mathematical morphology (MM) features for classification of cancerous masses in mammograms, information technologies in biomedicine. Adv Soft Comput 47:129–138. SpringerGoogle Scholar
  6. Camilus KS, Govindan VK, Sathidevi PS (2010) Computer-aided identification of the pectoral muscle in digitized mammograms. J Digit Imaging 23(5):562–580View ArticleGoogle Scholar
  7. Elnakib A, Gimel G, Suri JJ, El-baz A, Gimel’farb G (2011) Medical image segmentation: a brief survey. In: El-Baz AS, Acharya UR, Laine AF, Suri JS (eds) Medical image segmentation. Springer, New York, pp 1–39Google Scholar
  8. Erickson BJ, Bartholmai B (2002) Computer-aided detection and diagnosis at the start of the third millennium. J Digit Imaging 15:59–68View ArticleGoogle Scholar
  9. Ertas G, Gulcur HO, Aribal E, Semiz A (2001) Feature extraction from mammographic mass shapes and development of a mammogram database, engineering in medicine and biology society. In: Proceedings of the 23rd annual international conference of the IEEE, vol 3, pp 2752–2755Google Scholar
  10. Hassanien AE, Ali JMH (2011) Enhanced rough sets rule reduction algorithm for classification digital mammography. J Intell Syst 13:151–171Google Scholar
  11. Hassanien AE, Badr A (2003) A comparative study on digital a mammography enhancement algorithms based on fuzzy theory. Sci Inform Control 12:21–31Google Scholar
  12. Jayadevappa D, Srinivas Kumar S, Murty DS (2009) A hybrid segmentation model based on watershed and gradient vector flow for the detection of brain tumor. Int J Signal Process Image Process Pattern Recognit 2(3):29–42Google Scholar
  13. Masek M, Chandrasekhar R, Desilva CJS, Attikiouzel Y (2001), Spatially based application of the minimum cross-entropy thresholding algorithm to segment the pectoral muscle in mammograms. In: The seventh Australian and New Zealand intelligent information systems conference, Nov. 18–21, pp 101–106Google Scholar
  14. Mu T, Nandi AK, Rangayyan RM (2008) Classification of breast masses using selected shape, edge-sharpness, and texture features with linear and kernel-based classifiers. J Digit Imaging 21:153–169View ArticleGoogle Scholar
  15. Peng B, Wang Y, Yang X (2010) A multiscale morphological approach to local contrast enhancement for ultrasound images. In: Proceedings of the 2010 international conference on computational and information sciences, ICCIS’10, pp 1142–1145. IEEE Computer Society, Washington, DCGoogle Scholar
  16. Ramaswamy S, Rose K (2009) Towards optimal indexing for relevance feedback in large image databases. IEEE Trans Image Process 18(12):2780–2789. doi:
  17. Shah H, Ghazali R, Nawi NM (2011) Using artificial bee colony algorithm for MLP training on earthquake time series data prediction. J Comput 3(6):135–142Google Scholar
  18. Thamaraichelvi B, Yamuna GY (2013) A novel efficient kernelized fuzzy C-means with additive bias field for brain image segmentation. In: Proceedings of the international conference on communication and signal processing, pp 68–72Google Scholar
  19. Zakeri FS, Behnam H, Ahmadinejad N (2012) Classification of benign and malignant breast masses based on shape and texture features in sonography. J Med Images Syst 36:1621–1627View ArticleGoogle Scholar
  20. Zhang Z, Tan T, Huang K, Wang Y (2012) Three-dimensional deformable-model-based localization and recognition of road vehicles. IEEE Trans Image Process 21(1):1–13View ArticleGoogle Scholar


© Angayarkanni et al. 2015