Skip to main content
Log in

Adaptive active contours driven by the squared Hellinger distance and local correlation features for inhomogeneous image segmentation

  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract

Intensity inhomogeneity is an intractable issue that leads to significant challenges for image segmentation. Moreover, inhomogeneous images are very common in real life, especially the medical images generated by medical instruments. Most existing active contour models yield poor performance when they are applied to segment these images. Thus, a new image segmentation model is developed in this paper by integrating the squared Hellinger distance and multiple truncation functions that are defined by local correlation features into the level set framework. As a result, the problems of intensity inhomogeneity and dark edges can be effectively solved. Specifically, the Hellinger distance is first defined as a fitting method of the energy function and has better performance in splitting the boundary of dark areas in inhomogeneous images. More importantly, the proposed model constructs local correlation features (LCFs) to redefine the scale of the local areas and makes the division of the local information more reasonable, which effectively enhances the accuracy of inhomogeneous images. Then, to combine the global and local information of the image, an adaptive combination coefficient function defined by the evolution process is applied in our model; moreover, the length term combined with the saliency feature of the image achieves a remarkable improvement effect. Finally, all terms are integrated into a variational level set framework, and our new image segmentation model is proposed. The experimental results on medical and natural inhomogeneous images demonstrate the excellent performance of our model over most state-of-the-art active contour models in terms of accuracy and robustness.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Algorithm 1
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13

Similar content being viewed by others

Availability of data and materials

The datasets generated during and/or analyzed during the current study can be obtained from the corresponding author upon reasonable request, or obtained from the following GitHub website: https://github.com/dorianzhang7/adaptive-active-contour.git.

References

  1. Alipour N, Hasanzadeh RP (2021) Superpixel-based brain tumor segmentation in mr images using an extended local fuzzy active contour model. Multimed Tools Appl 80(6):8835–8859

    Article  Google Scholar 

  2. Cai Q, Liu H, Zhou S et al (2018) An adaptive-scale active contour model for inhomogeneous image segmentation and bias field estimation. Pattern Recognit 82:79–93

    Article  Google Scholar 

  3. Cai Q, Liu H, Qian Y et al (2019) Saliency-guided level set model for automatic object segmentation. Pattern Recognit 93:147–163

    Article  Google Scholar 

  4. Cai Q, Qian Y, Zhou S et al (2022) Avlsm: Adaptive variational level set model for image segmentation in the presence of severe intensity inhomogeneity and high noise. IEEE Trans Image Process 31:43–57

    Article  Google Scholar 

  5. Cao H, Wang Y, Chen J et al (2022) Swin-unet: Unet-like pure transformer for medical image segmentation. In: European conference on computer vision, Springer, pp 205–218

  6. Caselles V, Kimmel R, Sapiro G (2004) Geodesic active contours. Int J Comput Vis 22:61–79

    Article  Google Scholar 

  7. Chan TF, Vese LA (2001) Active contours without edges. IEEE Trans Image Process: A Publication IEEE Signal Process Society 10(2):266–277

    Article  Google Scholar 

  8. Chen D, Spencer J, Mirebeau JM et al (2021) A generalized asymmetric dual-front model for active contours and image segmentation. IEEE Trans Image Process 30:5056–5071

    Article  MathSciNet  Google Scholar 

  9. Chen H, Zhang H, Zhen X (2023) A hybrid active contour image segmentation model with robust to initial contour position. Multimed Tools Appl 82(7):10813–10832

    Article  Google Scholar 

  10. Cheng MM, Mitra NJ, Huang X et al (2015) Global contrast based salient region detection. IEEE Trans Pattern Anal Mach Intell 37:569–582

    Article  Google Scholar 

  11. Ding K, Xiao L, Weng G (2018) Active contours driven by local pre-fitting energy for fast image segmentation. Pattern Recognit Lett 104:29–36

    Article  Google Scholar 

  12. Fang L, Zhang L, Yao Y et al (2022) Ultrasound image segmentation using an active contour model and learning-structured inference. Multimed Tools Appl 81(10):13389–13407

    Article  Google Scholar 

  13. Guo Q, Sun S, Ren X et al (2018) Frequency-tuned active contour model. Neurocomputing 275:2307–2316

    Article  Google Scholar 

  14. Han B, Wu Y (2020) Active contour model for inhomogenous image segmentation based on jeffreys divergence. Pattern Recognit 107(107):520

    Google Scholar 

  15. Hellinger E (1909) Neue begründung der theorie quadratischer formen von unendlichvielen veränderlichen. J fur Reine Angew Math 1909(136):210–271

    Article  MathSciNet  Google Scholar 

  16. Isensee F, Jaeger PF, Kohl SA et al (2021) Nnu-net: a self-configuring method for deep learning-based biomedical image segmentation. Nat Methods 18(2):203–211

    Article  Google Scholar 

  17. Kirillov A, Mintun E, Ravi N et al (2023) Segment anything. In: Proceedings of the IEEE/CVF International conference on computer vision, pp 4015–4026

  18. Kullback S, Leibler RA (1951) On information and sufficiency. Ann Math Stat 22(1):79–86

    Article  MathSciNet  Google Scholar 

  19. Li C, Kao CY, Gore JC et al (2008) Minimization of region-scalable fitting energy for image segmentation. IEEE Trans Image Process 17:1940–1949

    Article  MathSciNet  Google Scholar 

  20. Li C, Chen X, Gui C et al (2010) Distance regularized level set evolution and its application to image segmentation. IEEE Trans Image Process 19:3243–3254

    Article  MathSciNet  Google Scholar 

  21. Li MM, Li BZ (2020) A novel active contour model for noisy image segmentation based on adaptive fractional order differentiation. IEEE Trans Image Process 29:9520–9531

    Article  MathSciNet  Google Scholar 

  22. Liu C, Liu W, Xing W (2019) A weighted edge-based level set method based on multi-local statistical information for noisy image segmentation. J Vis Commun Image Represent 59:89–107

    Article  Google Scholar 

  23. Min H, Xia L, Han J et al (2019) A multi-scale level set method based on local features for segmentation of images with intensity inhomogeneity. Pattern Recognit 91:69–85

    Article  Google Scholar 

  24. Minaee S, Boykov Y, Porikli F et al (2021) Image segmentation using deep learning: a survey. IEEE Trans Pattern Anal Mach Intell 44(7):3523–3542

    Google Scholar 

  25. Mumford D, Shah J (1989) Optimal approximations by piecewise smooth functions and associated variational problems. Commun Pur Appl Math 42:577–685

    Article  MathSciNet  Google Scholar 

  26. Niu S, Chen Q, de Sisternes L et al (2017) Robust noise region-based active contour model via local similarity factor for image segmentation. Pattern Recognit 61:104–119

    Article  Google Scholar 

  27. Niu Y, Qin L, Wang X (2019) Structured graph regularized shape prior and cross-entropy induced active contour model for myocardium segmentation in cta images. Neurocomputing 357:215–230

    Article  Google Scholar 

  28. Ronneberger O, Fischer P, Brox T (2015) U-net: Convolutional networks for biomedical image segmentation. In: Medical image computing and computer-assisted intervention–MICCAI 2015: 18th international conference, Munich, Germany, October 5-9, 2015, proceedings, part III 18, Springer, pp 234–241

  29. Saman S, Narayanan SJ (2021) Active contour model driven by optimized energy functionals for mr brain tumor segmentation with intensity inhomogeneity correction. Multimed Tools Appl 80(14):21925–21954

    Article  Google Scholar 

  30. Shiozaki A (1986) Edge extraction using entropy operator. Comput Vis Graph Image Process 36:1–9

    Article  Google Scholar 

  31. Shu X, Yang Y, Wu B (2021) Adaptive segmentation model for liver ct images based on neural network and level set method. Neurocomputing 453:438–452

    Article  Google Scholar 

  32. Song Y, Peng G, Sun D et al (2020) Active contours driven by gaussian function and adaptive-scale local correntropy-based k-means clustering for fast image segmentation. Signal Process 174(107):625

    Google Scholar 

  33. Wang G, Zhang F, Chen Y et al (2023) An active contour model based on local pre-piecewise fitting bias corrections for fast and accurate segmentation. IEEE Trans Instrum Meas 72:1–13

    Google Scholar 

  34. Wang L, Li C, Sun Q et al (2009) Active contours driven by local and global intensity fitting energy with application to brain mr image segmentation. Comput Med Imaging Graph 33(7):520–531

    Article  Google Scholar 

  35. Weng G, Yan X (2020) Robust active contours driven by order-statistic filtering energy for fast image segmentation. Knowl Based Syst 197(105):882

    Google Scholar 

  36. Yin S, Li H, Liu D et al (2020) Active contour modal based on density-oriented birch clustering method for medical image segmentation. Multimed Tools Appl 79(41):31049–31068

    Article  Google Scholar 

  37. Zhang K, Song H, Zhang L (2010) Active contours driven by local image fitting energy. Pattern Recognit 43:1199–1206

    Article  Google Scholar 

  38. Zhi XH, Shen HB (2018) Saliency driven region-edge-based top down level set evolution reveals the asynchronous focus in image segmentation. Pattern Recognit 80:241–255

    Article  Google Scholar 

  39. Zhu J, Fang B, Zhou M, et al (2022) An active contour model based on adaptively variable exponent combining legendre polynomial for image segmentation. Multimedia Tools and Applications pp 1–28

  40. Zong JJ, Qiu TS, Li WD et al (2019) Automatic ultrasound image segmentation based on local entropy and active contour model. Comput Math Appl 78:929–943

    Article  MathSciNet  Google Scholar 

Download references

Acknowledgements

This research is supported by the National Natural Science Foundation of China (Grant No.61972271, 62172290) and the Sichuan Science and Technology Program (No.2023YFS0454).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Yanli Liu.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Appendix

Appendix

1.1 A1 Adaptive weight connection coefficient

Figure 14 shows the curve of evolution weight \(w_l\) and \(w_g\) to iteration times t, and we can find that the fitting energy term can be divided into two stages in the segmentation process. In the first stage, the global term plays a major role in energy fitting, and the evolution curve at this stage can have strong robustness to the initial region of evolution and evolve to the basic contour of the target object. In the second stage, the local term is the dominant force in energy fitting, and the evolution curve of this stage can be refined and segmented based on the basic contour of the previous stage. The phased evolution causes the model to obtain a suitable energy fitting method and effectively solve the problem of the initial region and local optimal solution.

Fig. 14
figure 14

The curve of evolution weight \(w_l\) and \(w_g\) to iteration times t

1.2 A2 The \(L^*\) of energy-optimized adaptive local term

We present an example shown in Fig. 15. \(L^*\) is small in the complex limbic regions of the cerebral cortex, the novel truncation function (Gaussian kernel function) can restrict a small local area and achieve accurate segmentation of the region, \(L^*\) is large in the smooth regions of the brain stem, and the novel truncation function can restrict a large local area and prevent evolution from falling into local optima. In other words, the constructed function \(\Gamma _{L^*}\) can assign an appropriate local area range according to the intensity characteristics of different areas and help to improve model segmentation performance.

Fig. 15
figure 15

\(L^*\) of brain magnetic resonance images

1.3 A3 The comparison experiment of iteration times

We select complex images with large differences in evolution results from the above experimental images and analyze their evolution efficiency. The results are shown in Table 5. We can see that our proposed model needs a minimum number of iterations, which is based on better and more rational energy construction. Meanwhile, our model needs two convolution operations in each iteration, which is less than the RSF [19] and LGIF [34] and the same as the JDACM [14]. Therefore, the total amount of computation in the segmentation process of the proposed model is minimal. According to the above comparison experiments, the proposed model is more accurate and efficient than existing models for segmenting images with intensity inhomogeneity.

Table 5 Comparison of iteration times of different models

1.4 A4 The supplementary ablation experiment on truncation function

In Fig. 16, experimental images from the left column to the right column are the evolution results of \(\sigma =0.5\), \(\sigma =1\), \(\sigma =3\), \(\sigma =6\) and adaptive \(\sigma \) based on local correlation feature in our model, the 1st and the 2nd row are two groups of the segmenting results and the blue boxes are examples of the local areas with distinct differences. The 3rd row is binary images of segmentation results. We evaluate the effectiveness of the novel truncation function in the proposed model. The experimental image was an MR image of the brain with complex internal structure and intensity inhomogeneity. When \(\sigma \) is equal to 0.5, the model has a small local region division, the segmenting process is slow, and some areas are not accurate. When \(\sigma \) is equal to 1, the segmentation result has better performance in some areas of the image but still has defects at the edges of the cerebral cortex. When \(\sigma \) is equal to 3, the model has fallen into the local optimal solution due to the unreasonable division of local areas. When \(\sigma \) is equal to 6, the local region scope of the model is large, and many details of the target object (such as marginal details of the cerebral cortex) cannot be accurately segmented. In contrast, our proposed model adopts the truncation function based on the local correlation feature (LCF), which can divide smaller local areas of the image detail part to enhance the evolutionary accuracy and divide larger local areas of the rest of the image to solve the problem of falling into the local optimal solution. The 3rd row of Fig. 16 shows binary images of the segmentation results. We can see that the segmentation of the proposed model is more refined and has smoother edges; moreover, our results have no extra small, isolated regions compared to other images. The DSC and JS values of the proposed model based on the novel truncation function and the comparison method of fixed \(\sigma \) values for segmenting brain MR images are shown in Table 6.

Fig. 16
figure 16

Ablation experiment on truncation function

Table 6 Dice Similarity Coefficient and Jaccard Similarity of ablation experiment on truncation function shown in Fig. 16

We know from the data that the proposed model using the \(\sigma \) based on the local correlation feature gives higher DSC and JS values than fixed \(\sigma \), which indicates that the novel truncation function effectively enhances the applicability and segmentation accuracy of the model.

1.5 A5 The comparison experiment on \(\mu \)

We construct a comparative experiment to analyze the effect of variable \(\mu \) on segmentation results. \(\mu \) is used to constrain the weight of the length term in the model. The greater its value, the smoother the segmentation curve, which can effectively reduce the segmentation error. The previous model [19] usually sets \(\mu = 0.001\times 255^2\), and our proposed model has segmentation errors due to the change in the length term by integrating image salience, as shown in Fig. 17. Therefore, we increase \(\mu = 0.002\times 255^2\) to constrain the length of the segmentation curve and reduce errors. The experimental results show that the method has made effective improvement, but when we continue to increase \(\mu = 0.003\times 255^2\), the length term has negative impacts on results. Finally, we believe that the optimal selection of \(\mu \) is \(0.002\times 255^2\).

Fig. 17
figure 17

The comparison experiment on \(\mu \)

1.6 A6 The comparison experiment on \(\kappa \)

We construct a comparative experiment to analyze the effect of variable \(\kappa \) on segmentation results. \(\kappa \) is the coefficient of the adaptive scale kernel, which controls the local areas. In experiments, we select 5, 7, 10, 15, and 20 for \(\kappa \). The results are shown in Fig. 18. We can see that the small value of \(\kappa \) such as 5 and 7 limits the evolution rate and makes the segmentation results partially missing. The large value of \(\kappa \) such as 15 and 20 causes errors other than objects in the resulting segmentation. Therefore, we choose 10 as the optimal value of \(\kappa \).

Fig. 18
figure 18

The comparison experiment on \(\kappa \)

1.7 A7 The comparison experiment on \(\alpha \) and \(\beta \)

Furthermore, we design experiments to analyze the effects of \(\alpha \) and \(\beta \) on segmentation results. \(\alpha \) and \(\beta \) are the weight coefficients of the global energy-optimized term and adaptive local energy-optimized term in the proposed model. How to adjust and select the values of two parameters is important for the evolution of the active contour model. As shown in Fig. 19, we use the same initial evolution curve and gradually change the values of the two parameters through the single variable method. The experimental results are shown in Fig. 20. We can observe that the smaller values of \(\alpha \) and \(\beta \) make the energy-optimized terms (global and local) account for a smaller proportion of the entire active contour model. The length term plays a major role in the model and makes the segmentation curve evolve into a small smooth curve. We gradually increase the values of \(\alpha \) and \(\beta \), which improves the segmentation performance. In particular, changing the value of \(\alpha \) directly affects the global term, and the model tends to evolve the overall contour of the object. If the value of \(\alpha \) is too large such as 400, there are defects of insufficient evolution accuracy and evolution errors. Changing the value of \(\beta \) directly affects the local term. The model pays more attention to the details of the objects with the growing of \(\beta \), but a large value of \(\beta \) such as 2000 makes the evolution curve contain many detail errors. Finally, we consider all the results of the experiment comprehensively and found that when \(\alpha \) is equal to 40 and \(\beta \) is equal to 400, the evolution result is the closest to the ground truth. Therefore, we reasonably select the best value of the two coefficients.

Fig. 19
figure 19

The initial box and ground truth of the comparison experiment

Fig. 20
figure 20

The comparison experiment results on \(\alpha \) and \(\beta \)

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Zhang, Q., Xing, G., Zhang, J. et al. Adaptive active contours driven by the squared Hellinger distance and local correlation features for inhomogeneous image segmentation. Multimed Tools Appl (2024). https://doi.org/10.1007/s11042-024-19407-1

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s11042-024-19407-1

Keywords

Navigation