1 Introduction

In the computer-based diagnosis of human organs, the major task is the segmentation of the specific organ of the scanned image. After segmentation process, further investigations such as quantification and classification are done. The gallbladder is a small sac-like organ positioned at a lower level of liver which garners digestive fluid extruded from liver and emancipates it in the course of digestion. Naturally, the gallbladder is located in the right upper quadrant abdominal cavity. Usually the wall of gallbladder with clear edge looks like thin and glossy. Diagnosis of gallstones employing suitable imaging modality becomes conspicuous as it incites the malignant gall tumor. Ultrasound imaging modality is usually preferred on the grounds that it is noninvasive and non-ionizing. Figure 1 shows that the ultrasound scan images have an irregular background and the edges of the gallbladder are blurred or missed. Hence, the accurate segmentation of the gallbladder shape is still a difficult process as it requires efficient algorithms. The shape of bladder varies from person to person due to several reasons. Gallstones and polyps are the general pathological diseases presenting in the bladder. If the gallbladder diseases are detected at earlier stages, their growth can be hindered. Presently the active contour models are the increasingly used method to extract the shape of the organs from the ultrasound images. Many works [1,2,3,4,5] used are edge-based active contour models for the shape extraction. Still, it has some shortcomings that often it gives either the contracted shape or expanded shape when comparing with the original shape, due to its inflation and deflation force. Sometimes, one or more loop occurs due to the self-crossings of the contour. Though some algorithms [6, 7] were presented to detect the self-crossings in images and videos, they seem to be less effective in medical image processing. Many works [8,9,10,11,12,13] have been proposed to segment the shape of the gallbladder.

To propose an accurate segmentation algorithm to extract the gallbladder (GB) and gallstone regions or other lesions, the below three sets of information must be taken into account. They are the position of the gallbladder in the ultrasound scan, place of the ultrasound source and information regarding the angle from which the gallbladder is scanned. Image segmentation is the process of partitioning the images into several regions based on the pixel values. The aim of this paper is to detect the shape of the gallbladder and to segment the gallstones and polyps located inside the gallbladder using a computer-based algorithm. It is necessary to apply a suitable preprocessing method in order to eliminate the irregularities presenting in the ultrasound scan images. A biologically inspired algorithm is presented in this work which is based on the spider web construction.

Fig. 1
figure 1

Ultrasound scan image of the gallbladder

2 Related works

In this section, the previous works involved in gallbladder segmentation are discussed. Moreover, various bio-inspired algorithms are discussed along with their application to various problems as well as to image processing. Ciecholewski [9] has used active contour models to segment the gallbladder with lesions or without lesions. The active contour models such as membrane and motion equation and the gradient vector flow model (GVF snake) are employed to determine the edges of gallbladder, polyps or other changes. Then, the section of the image found on the outside of the segmented gallbladder is removed from the image. From the experimental results obtained from testing 600 ultrasound images, the dice similarity coefficient (DSC) is obtained for the three different active contour models employed in the paper. The average DSC for these three active contour models is 81.8%. In their work, histogram transformation is applied as the first step to enhance the contrast of the image. Then in 2011 [10], Marcin Ciecholewski applied the AdaBoost (adaptive boosting) and support vector machine (SVM) to locate and classify the lesions in the gallbladder as lithiasis or polyps. The performance is analyzed from the simulation results, and it is observed that the accuracy of 91% is obtained in classifying lithiasis only, 80% is obtained in classifying polyps and 78.9% is obtained in classifying the regions with both polyps and lithiasis. In the paper [8], Ogiela and Bodzioch have segmented gallbladder by employing two methods. They have employed binarization, binary image filtering with rank filter and contour identification. In the second method, the edges are detected by using histogram analysis. This method may provide wrong results when the polyps or gallstones are bright in the background of the dark region (gallbladder) and when they are presented next to the bladder edges. Xie et al. [13] have proposed a method for segmenting gallbladder using level set model. The results of the paper [9] are not evaluated with more scan images, and it provides better results of gallbladder without lesions. Hence, to improve the work, Marcin Ciecholewski has presented another work by using two active contour models which are edge-based model and region-based model. In this work, self-crossings and loops are removed using suitable methods and inflation force is dampened. By implementing histogram normalization transformation and the Gaussian filter smoothing process, the image contrast is enhanced and the noises are removed. Then the edges of the gallbladder that fall on the dark background of the images are computed manually to initialize the contour. Subsequently the detected edge is smoothened by exploiting a convex hull algorithm. Lian et al. [12] have proposed automatic segmentation algorithm for gallbladder and gallstone from the ultrasound image. This work is accomplished in five stages. In the first stage, the authors employed Otsu thresholding process and anisotropic diffusion process in the preprocessing stage. The Otsu method extracts the weak edges presenting in the inner part of the gallbladder. The second stage which is the fine segmentation of the gallbladder is obtained using a global morphology filtering process. In the third stage, high-intensity regions such as gallstones are extracted using a parameter-adaptive pulse-coupled neural network (PAPCNN). A modified region growing model is employed in the next stage in order to avoid over segmentation of gallstones. The locally weighted regression smoothing process is applied as the final stage to obtain smoothened regions of the resulting regions. The authors tested the proposed work and compared the accuracy of the proposed with the previous works.

In paper [14], the authors presented a snake-based approach as a semiautomatic segmentation technique to apply on ultrasound images. The authors encompass the fly learning of statistical boundary models in this work without affecting the straight forward propagation of snakes. They analyzed the proposed algorithm to segment the in vivo ultrasound images. This method performs computation at low cost and requires less manual interaction. Wimmer et al. [15] proposed a segmentation method to segment cavity regions from ultrasound images. In this work, the authors located an arbitrary seed point inside the cavity and projected a equispaced radii from that location to the edge of the cavity. The distance between the seed point and the cavity edge is determined from the traces of a moving object. The contour is then segmented with the application of interacting multiple model (IMM) estimator along with a probabilistic data association filter (PDAF). This method does not contain any numerical optimization; hence, it shows less convergence rate. Abolmaesumi et al. [16] proposed a probabilistic active shape model to extract liver from the 3D scan image and this method is developed based on the nonparametric density estimates. A nearest neighbor boundary appearance model is combined with a series of boosted classifiers to obtain region information and used along with a shape model based on Parzen density estimation. The work reported in [17] is the first work to present the fully automatic gallbladder segmentation and they implemented volumetric analysis in volume information of non-contrast-enhanced and secretin-enhanced magnetic resonance (MR) cholangiopancreatography (MRCP) sequences. Initially a gallbladder outline space is engendered to develop 3D gallbladder shape features. Then these features are joined with 2D features in a support vector machine (SVM) classifier to locate gallbladder regions in MRCP volume data. Fine segmentation is obtained by a region-based level set approach. Volumetric analysis is performed for both sequences to calculate gallbladder volume differences between both sequences. In Saito et al. [18] reports joint optimization for segmentation and shape priors to overwhelm inter-subject variability in the place of a human organ. The authors presented a fast approximation for optimization. The performance of the proposed approximation is evaluated in the framework of gallbladder segmentation from a non-contrast computed tomography (CT) volume. At first, the spatial standardization is applied and the posterior probability of the target organ is computed. Then simultaneous optimization of the segmentation, shape and location priors is accomplished with the help of a branch-and-bound method. Fast approximation is obtained by jointly using sampling technique in the eigenshape space to decrease the number of shape priors and an efficient computational method for computing the lower bound. To meet out the limitations of the above-said works, in this paper a spider web-based segmentation technique is presented.

The biologically inspired algorithms (BIA) are exposed to be the tremendous methods in many fields of engineering design, industrial optimization, networking, image processing, power system optimization and medical signal analysis [19,20,21,22]. Many works have been performed in the research field of BIA from the last decade twentieth century. Many such algorithms have been developed for last two decades and still there is a vast space for the engineers since some of them yield better solutions to only certain problems; not for all. Various bio-inspired algorithms involving swarm-based models and migration-based models are listed in Fig. 2. These algorithms are utilized in many industrial processes and research works for solving the optimization problems. They are particle swarm optimization (PSO) [23], ant colony algorithm [24], artificial bee colony [25], termite algorithm [26], artificial fish swarm algorithm [27], monkey search [28], cuckoo search [29], firefly algorithm [30], gray wolf optimizer [31], lion hunting algorithm [32], pigeon inspired algorithm [33], whale optimization [34], dragonfly algorithm [35], coral reef optimization algorithm [36] and more. Various conventional BIAs and species from which the algorithms are inspired are listed in Fig. 2. The gray wolf optimization (GWO) algorithm is inspired by the leadership and hunting process of gray wolves. This algorithm is first developed by Seyedali Mirjalili [31] to solve engineering design problems. In this algorithm, the three phases (searching for prey, encircling prey and attacking prey) involved in the hunting process of wolves are applied. The authors analyzed the performance of the gray wolf algorithm by implementing it in three design problems: designing compression spring, designing welded beam and designing a pressure vessel. In [32], a population-based algorithm inspired from the lion is proposed. The cooperation characteristics of the lion are exploited, and algorithm is developed for optimization problem. Seyedali Mirjalili in another work [35] presented a dragonfly optimization algorithm along with its two versions namely, binary DA (BDA) and multi-objective DA (MODA). MODA is implemented in designing the submarine propeller and its performance is evaluated. Salcedo-Sanz et al. [36] developed coral reef optimization algorithm by inspiring from the reproduction and fight for space mechanisms in the coral reef. The algorithm is validated by implementing in the mobile network application and designing wind farms.

By adopting the behavior of spider species, social spider algorithm is presented in many works to solve various optimization problems such as economic load dispatch problem [37] and fault diagnosis in power distribution network [38]. Anter et al. [39] presented a novel feature selection approach for detecting tumor from a CT liver image by implementing the social spider optimization algorithm. This algorithm detects the optimal region of the search space based on the interaction of individual species in the colony. The optimal region refers to the necessary feature set to be selected from a large feature set. The performance of the work is analyzed from the metrics such as confusion matrix, precision, recall and accuracy. In paper [40], multi-level thresholding segmentation using two bio-inspired algorithms is presented. The two algorithms are flower pollination (FP) which is inspired by pollination process in flower and the social spiders optimization (SSO) algorithms. Initial solutions (threshold values) are first produced by a histogram. Then the optimal threshold values are computed using the between-class variance or Kapur’s method.

Fig. 2
figure 2

Bio-inspired algorithms

3 Proposed bias method

The ultrasound scan images obtained from eight patients are taken as input images for analyzing the proposed method. In the first step, in order to improve the quality of the image, histogram equalization process and difference of offset Gaussian (DooG) filter are applied as the preprocessing methods. After enhancing the image, it is processed for segmenting the gallbladder region by applying bio-inspired spider web formation algorithm. The various processes involved in this work are illustrated in Fig. 3.

3.1 Histogram equalization (HE)

Histogram equalization (HE) is the technique used to increase the contrast of the image so that the image visibility can be improved without altering the structure. In this method, the information contained in an image is associated with the probability of the incidence of each gray level. To increase the information contained by the image, the histogram transformation is employed to homogeneously redistribute the above-said probability factor.

Fig. 3
figure 3

Steps involved in the proposed work

To define the histogram of an image, A, at first let us consider that B is the output image obtained from HE process and p and q are the gray levels of A and B, respectively. The gray levels in these images are always in the range of values between 0 and 1. \(H\left( p \right) \) and \(H\left( q \right) \) represent the normalized histogram of images A and B. It can also be known as the gray-level probability density functions (PDFs). For every gray level of image A, \(\left( {p_i } \right) \), the transformation function (Fig. 4) shown in Eq. 1 produces a new gray value \(\left( {q_i } \right) \).

$$\begin{aligned} q=F\left( p \right) \end{aligned}$$
(1)

The function \(F\left( p \right) \) must obey two constraints that it should be single-valued and monotonically increasing in order to maintain the intensity order in the transformed image as in the input image and the function should fall in the range from 0 to 1. For the transformed variable q, the histogram function or PDF can be obtained from Eq. 2. This transformation is known as histogram equalization.

$$\begin{aligned} H\left( q \right) =\left[ {H\left( p \right) \frac{\hbox {d}p}{\hbox {d}q}} \right] \end{aligned}$$
(2)

When \(H\left( q \right) =1\), Eq. 2 becomes

$$\begin{aligned} \hbox {d}q=H\left( p \right) \hbox {d}p \end{aligned}$$
(3)

and hence

$$\begin{aligned} q=F\left( p \right) =\mathop \int \limits _0^p H\left( w \right) \hbox {d}w \end{aligned}$$
(4)

Equation 4 represents the cumulative distribution unction (CDF) of gray level, p, of the image.

Fig. 4
figure 4

Single-valued, monotonically increasing transformation function

Equation 5 denotes the probability of incidence of gray level \(p_i \) in the image A is represented by

$$\begin{aligned} H\left( {p_i } \right) =\frac{n_i }{n} \end{aligned}$$
(5)

where n is the total number of pixels in the image and \({n}_{i}\) the number of pixels with gray level p.

3.2 DooG filter

In order to enhance the edges in the image, the DooG filter is applied. The output image obtained from histogram equalization is given to the DooG filter. The purpose of filter is to remove noise in the image before applying segmentation process. Noise elimination is an essential task in medical image analysis [41, 42]. The DooG filter highlights the edges by producing maximum absolute pixel value for the pixels occurred in an edge. Pixels occurred in the edge is appeared as a sharp gradient between the pixels in the actual image with a definite direction. The magnitude and orientation are computed from the first derivative of the gradient in horizontal and vertical axis. The DooG filter is implemented in this work by reason of its very less computation time. Thus it lessens computational cost. A 2D isotropic Gaussian function is represented as

$$\begin{aligned} {\mathbb {G}}\left( {x,y} \right) =\frac{1}{\sqrt{2\pi }\sigma }\hbox {e}^{{-\left( {x^{2}+y^{2}} \right) }/{2\sigma ^{2}}} \end{aligned}$$
(6)

The first derivative of GF in horizontal axis is given in

$$\begin{aligned} {\mathbb {G}}^{\prime } _ {\sigma } (x,y) =\frac{{\partial {\mathbb {G}}_{\sigma } (x,y)}}{{\partial x}} = \frac{{-x}}{{{\sigma }^{2}}} {\mathbb {G}}_{\sigma } (x,y) \end{aligned}$$
(7)

The difference of offset Gaussian (DooG) in the horizontal axis is represented in Eq. 8.

$$\begin{aligned} \hbox {DooG}_\sigma \left( {x,y} \right) ={\mathbb {G}}_\sigma \left( {x,y} \right) -{\mathbb {G}}_\sigma \left( {x+\delta ,y} \right) \end{aligned}$$
(8)

\(\delta \) is offset between centers of two Gaussian kernels. The DooG function along various directions can be computed by revolving the functions of Eqs. 7 and 8.

$$\begin{aligned}&{\mathbb {G}}^{{\prime }}_{\sigma ,\alpha } (x,y) = {\mathbb {G}}^{{\prime }}_{\sigma }(x\, \hbox {cos} \,\alpha + y \,\hbox {sin}\, \alpha , - x \,\hbox {sin} \,\alpha + y \,\hbox {cos} \,\alpha ) \end{aligned}$$
(9)
$$\begin{aligned}&\hbox {DooG}^{{\prime }}_{\sigma ,\alpha } \left( {x,y} \right) =\hbox {DooG}^{{\prime }}_\sigma \left( {x\cos \alpha +y\sin \alpha ,-x\sin \alpha +y\cos \alpha } \right) \end{aligned}$$
(10)

The direction can be determined by computing the edge energy. The edge energy of a Gaussian smoothed image \(Z_\sigma \left( {x,y} \right) \) at a point, p, is denoted as \(E\left( {p,\alpha } \right) \). It is the magnitude of the gradient of the image in the direction \(\alpha \).

$$\begin{aligned} E\left( {p,\alpha } \right) =\left| {Z\left( {x,y} \right) *\hbox {GF}^{{\prime }}_{\sigma ,\alpha } \left( {x,y} \right) } \right| \end{aligned}$$
(11)

There are two feasible directions depending on the edge energy (forward and the backward).

3.3 Spider web-based segmentation

Biologically inspired design (BID) and algorithm utilize equivalent biological event or a habitant to obtain solutions to engineering problems [43,44,45,46,47]. Many products have been manufactured based on the biologically inspired designs. In the field of developing algorithms for accomplishing a particular task, biologically inspired algorithms (BIA) have been derived by studying the behavior of group of insects, animals and others. The spider web algorithm is applied in this work for segmenting the bladder and gallstone or other lesions presenting in the scan image. This algorithm is inspired from the behavior of spider in constructing cobweb.

Generally the spider species construct web for catching its prey. The spider web is built by the spider silk, which is thrust out from its spinnerets. Every spider has some spinneret glands and each gland is able to produce spider silk. The diameter of silk in the spider web is in the range of 0.02–0.15 mm. The spider web becomes visible to human eye due to the reflection of light on the silk. A spider with a body length of 5 mm can build a web for a volume of 100 m\(^{3}\). Spider web can be built in vertical or horizontal planes. There are many kinds of spider web. Of them, orb web is built in the vertical plane and sheet web is built in the horizontal plane. Figure 5 shows sheet web, orb web and a hypothetical, vertical web built between two plants. In web construction, the spider first creates a sticky silk thread and thrust it out in the air to stick onto a suitable place. Then the spider moves along the thread to the fixed place and adds a thread to provide more strength to the thread. Then it again comes back to the original position and builds other threads to form a web. The different kinds of webs such as orb web, cobweb and sheet web can be constructed based on the type of spider and based on the approach of silk fixing.

By exploiting this basic web building behavior of spiders, we developed a bio-inspired algorithm based on spider web construction process for image segmentation process in medical images. This paper explicits the proposed algorithm to segment the gallbladder region. As the preprocessing step, histogram equalization is applied to enhance the contrast of the image. After that, the proposed spider web algorithm is applied in the segmentation process. The accuracy of the proposed method is evaluated and it is compared with the results obtained from other segmentation methods.

Fig. 5
figure 5

Spider web, a sheet web, b orb web, c hypothetical vertical web

Fig. 6
figure 6

Pixel representation of a pixels of the image with the randomly chosen pixel (a), b neighboring pixels of pixel a; various colors in the image represent various pixel values (color figure online)

Fig. 7
figure 7

Steps in spider web-based segmentation. a Initial spider location and its movement to the next pixel are shown. b Last fixed pixel moves to its neighborhood pixel with same color (intensity). ch Same process as in b happen (color figure online)

In digital image processing an image, I is represented as an \(n\times m\) matrix of pixel values. The given image is preprocessed using histogram and DooG filter. The output image of the DooG filter is then segmented using the spider web algorithm. In spider web construction, the spider first creates a sticky silk thread and thrust it out in the air to stick onto a suitable place. Then the spider moves along the thread to the fixed place and adds a thread to provide more strength to the thread. Then it again comes back to the original position and builds other threads to form a web. By adopting this principle behind web construction, the pixels are segmented in the image. Image pixels are considered as the spider’s location. Initially a pixel is selected randomly as a spider [pixel (a)]. Then from that location, spider web construction begins. The initial pixel checks all of its eight neighboring pixels in the image. It chooses the neighboring pixels whose intensity value is equal to that of pixel (a). These pixels are denoted as set X. It is similar to the process of sticking the silk thread in a suitable place. Figure 6 represents the various pixels of the image and the chosen pixel and its neighborhood pixels are also represented.

When the neighboring pixels with same intensity values are selected, the spider moves from its initial position to one of the unsilked neighboring pixels in set X. The silked pixel must not be considered. After moving to the next pixel, silk fixing process is performed. The thread between two pixels represents that they are connected. After silk fixing, the next move is started from the last fixed pixel. If the neighboring pixel is of different intensity value, the spider comes back to the initial position and checks another neighboring pixel and this process continues when all the pixels in the set X are checked for silk fixing process. The segmented region is represented by the set of silked pixels. The working procedure of image segmentation process under spider web construction algorithm is shown for the example of pixel matrix of image shown in Fig. 6 are illustrated in Fig. 7. The same colored box represents the pixels having same intensity values. The silked pixels (boxes in figure) are marked with ‘X.’ Figure 7 shows that the pixels having same intensity values are silked. Hence, the region with same colored pixels can be segmented with this method effectively.

figure a
Fig. 8
figure 8

Input images with gallstone (input set 1)

Fig. 9
figure 9

Output images of the set of input images in Fig. 8

Fig. 10
figure 10

Images with no lesions (input set 2)

Fig. 11
figure 11

Output images of the set of input images in Fig. 10

Fig. 12
figure 12

Comparison of DSC for images with gallstones and with no any lesions

Fig. 13
figure 13

Comparison of overlap function for images with gallstones and with no any lesions

Fig. 14
figure 14

Comparison of overlap value for images with gallstones and with no any lesions

Fig. 15
figure 15

Comparison of position error for images with gallstones and with no any lesions

Fig. 16
figure 16

Comparison of DSC for images with gallstones

Fig. 17
figure 17

Comparison of OF for images with gallstones

Fig. 18
figure 18

Comparison of parameters for images with gallstones

Fig. 19
figure 19

Comparison of PE for images with gallstones

4 Experimental results

The ultrasound scan images of gallbladder with no lesions and with gallstones are taken for evaluating the proposed method. The proposed spider web-based segmentation algorithm in this paper was executed in MATLAB software (version: 8.0.0.783, R2012b) on a computer equipped with Intel\(\circledR \)\(\hbox {Core}^{\mathrm{TM}}\) i5-2410M processor of 2.30 GHz clock speed and 8 GB RAM to evaluate the results. The input ultrasound images are shown in Fig. 8. These scan images of 60 patients were collected from a private diagnostic center located in the Rajapalayam city of India. As it is superfluous to tabulate results for 60 patients, we have taken the mean values of parameters obtained for those images in order to test and validate the performance of the proposed method. In Fig. 9, the output images obtained using spider web-based segmentation algorithm are shown. Figure 8 shows seven input images having gallstone. Figure 10 shows the gallbladder images which have no any lesions, and Fig. 11 shows the corresponding output images. These images are analyzed and the performance metrics are listed in tables and mean values are computed to compare with previous works. The input images are also examined with other state-of-the-art methods such as GVF snake model, snake balloon, parameter-adaptive pulse-coupled neural network, modified edge-based model (ME) and modified morphological model (MO), which are listed in the works [11, 12]. The performance metrics are also computed using these methods and the mean values are tabulated for comparison.

Initially the histogram equalization is performed to get a clear image which is a contrast enhanced image. Usually in the medical images there exist several noises which show a severe impact on results. Noises may lead to false diagnosis. They are instrument noise, Gaussian noise, physiological noise and thermal noise. In this work, we employed DooG filter to remove the noise in the preprocessing step. The reason for choosing this filter is because of its faster performance. Then the proposed segmentation process is applied to segment the gallbladder as well as the gallstone area from the image.

The computed parameters are dice similarity coefficient (DSC), overlap function (OF), overlap value (OV) and position error (PE). The first three parameters find out the similarity between two regions (automatic segmented output and manually segmented gallbladder region). Position error represents the error between two regions which can be obtained by Eq. 15.

$$\begin{aligned} \hbox {DSC}= & {} 2\times \frac{\left| {S_1 \cap S_2 } \right| }{\left| {S_1 +S_2 } \right| } \end{aligned}$$
(12)
$$\begin{aligned} \hbox {OF}= & {} \frac{\left| {S_1 \cap S_2 } \right| }{S_2 } \end{aligned}$$
(13)
$$\begin{aligned} \hbox {OV}= & {} \frac{\left| {S_1 \cap S_2 } \right| }{\left| {S_1 \cup S_2 } \right| } \end{aligned}$$
(14)

\(S_1\) group of pixels in manually segmented region. \(S_2\) group of pixels in automatic or semiautomatic segmented region.

$$\begin{aligned} \hbox {PE}=\frac{1}{2c}\mathop \sum \limits _{i=1}^c \hbox {dist}\left( {u_i ,v} \right) +\frac{1}{2d}\mathop \sum \limits _{j=1}^d \hbox {dist}\left( {u,v_j } \right) \end{aligned}$$
(15)

u group of c number of pixels of the region to be compared, v group of d number of pixels of the region to be compared, \(\hbox {dist}\left( {u_i ,v} \right) \)—shorter distance between the pixel \(u_i \) and every pixel of the region v. \(\hbox {dist}\left( {u,v_j } \right) \)—shorter distance between the pixel u and every pixel of the region \(u_i \).

Table 1 Performance parameters computed for images with gallstones and with no any lesions

The performance metrics are evaluated and listed in Tables 12 and 3. Table 1 gives the metrics for the two sets of input images applied in the work (with gallstones and image without any lesions). For the images having gallstones in the gallbladder, the parameters are computed separately for gallbladder region and gallstone region. Table 2 compares the performance metrics of the proposed method with other conventional methods for image with stone and without any disease. In this table, the mean values are denoted. In Table 3, the metrics of the gallbladder with gallstones are computed separately for bladder region and stone region. Similarly, these values obtained for the proposed method are compared with the conventional methods (Figs. 1213141516171819). In the proposed method, the measurements of DSC, OF, OV and PE for gallbladder with stone are 0.9315, 0.843971, 0.831529 and 0.839086, respectively. It is seen that the values of metrics such as OF, OV and DSC are less in the proposed method closer to the value ‘1’ in the proposed method when compared with the other methods. Besides, the value of PE metric is closer to the value ‘0’ in the proposed method when compared with the other methods. Moreover, to validate the performance of DooG filter in this work, the proposed method is compared with other filters such as moving average filter, Gaussian filter and Sobel filter. The results are tabulated in Table 4.

5 Conclusion

Accurate segmentation of gallbladder and gallstone from the ultrasound scan image is a difficult task. In this paper, a biologically inspired algorithm is presented for the automatic segmentation of gallbladder and gallstones. Biologically inspired algorithms are developed from the behavior of a certain species. The construction of spider web by the spider is adopted in this work, and the segmentation algorithm based on spider web construction is proposed. This method accurately segments the gallbladder and gallstone regions from the image, by searching image pixels based on the intensity. To determine the characteristics of lesions presenting in the gallbladder accurately, an efficient noise filter is employed in this work. The performance metrics such as dice similarity coefficient (DSC), overlap function (OF), overlap value (OV) and position error (PE) are evaluated and compared with the other state-of-the-art methods. The values of parameters such as DSC, OF and OV are larger than those obtained in previous works and position error is less which is equal to 0.81452. From the comparative analysis, it is observed that the segmented region in the proposed method is similar to the original region. As a future part of this work, classifier will be applied to detect polyps, lithiasis, gallstone along with the detection of gallbladder.

Table 2 Comparison of parameters for images with gallstones (input set 1) and with no any lesions (input set 2)
Table 3 Comparison of parameters for images with gallstones (input set 1)
Table 4 Comparison of performance of various filters