Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 31 No. 5s (2024) 204 https://internationalpubls.com Optimizing Weight Functions for Enhanced Image Segmentation Using Normalized Cut Subhashree Abinash1,2, Sabyasachi Pattnaik2 1 Synergy Institute of Engineering and Technology, Dhenkanal, India. 2 Fakir Mohan University, Balasore, India, https:/fmuniversity.nic.in Article History: Received: 10-05-2024 Revised: 22-06-2024 Accepted: 04-07-2024 Abstract Effective image segmentation remains a fundamental challenge in computer vision, with the Normalized Cut (Ncut) method emerging as a powerful technique for partitioning images into meaningful segments. The efficacy of Ncut largely depends on the choice of the weight function, which quantifies the similarity between image elements, be the pixels or predefined regions. This paper presents a novel framework to optimize the weight functions for Ncut in the context of image segmentation, aiming to bridge the gap between theoretical robustness and practical applicability. We first discussed the theoretical aspects of Ncut, emphasizing the role of weight functions in achieving segmentation that is both globally and locally suitable. Subsequently, we analyze the frameworks for the systematic selection of weight functions, effective to different image characteristics such as texture, color, and spatial relationships. Our methodology combining color spaces analysis, texture descriptors, and edge information. Through several experimentations on Corel and Berkley image segmentation datasets, including natural scenes and images, we demonstrate the comparisons of the weight functions over conventional methods in terms of segmentation quality and evaluated with standard algorithms like Otsu thresholding and C-means clustering algorithm. Three validity indices have been used to quantify the results and observe the superiority of the proposed model. This work not only advances the understanding of weight function optimization in Ncut-based image segmentation but also offers a practical guide for researchers and practitioners in computer vision. Keywords: Image Segmentation, Normalized Cut, Weight Function, Computer Vision, Texture Analysis, Color Space, Edge Information. 1. Introduction The Normalized Cut (Ncut) algorithm has been widely recognized for its effectiveness in image segmentation, leveraging graph theory to partition images into meaningful segments based on global image features. The algorithm's success in various applications underscores its versatility and efficiency in handling complex segmentation tasks [5]. However, the choice of weight functions within the Ncut framework significantly impacts its performance, necessitating a deeper exploration of optimization strategies to enhance segmentation outcomes. Recent advancements in weight function design have focused on incorporating multi-dimensional features such as color, texture, and spatial information to improve segmentation accuracy. These efforts underscore the importance of a comprehensive approach that considers the diverse characteristics of image data [6]. Moreover, the Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 31 No. 5s (2024) 205 https://internationalpubls.com application of machine learning techniques for the automatic tuning of weight function parameters has shown promising results, offering a pathway to more adaptive and robust segmentation solutions [3]. In the domain of texture-based segmentation, the utilization of texture descriptors within weight functions has been particularly effective for distinguishing between complex patterns and surfaces [2,4]. This approach has enabled more nuanced differentiation between image regions, highlighting the critical role of texture analysis in segmentation tasks [4,16-17]. Furthermore, the integration of spatial proximity measures into weight functions has been shown to enhance the coherence of segmented regions, ensuring that segments are not only homogeneous in feature space but also contiguous in the spatial domain. This spatial consideration is vital for maintaining the integrity of object boundaries and facilitating the segmentation of closely situated but distinct entities [1,3,15]. The exploration of hybrid weight functions that combine multiple features and adapt to specific segmentation goals represents a significant area of ongoing research. These hybrid approaches aim to leverage the strengths of various descriptors and similarity measures, offering a more flexible and effective framework for addressing the challenges of image segmentation [8,12,18]. In conclusion, the literature underscores the critical importance of optimizing weight functions within the Ncut algorithm to achieve enhanced image segmentation. Future research directions include the further development of adaptive weight functions, the exploration of new feature descriptors, and the application of advanced machine learning techniques for parameter optimization. The article is further divided into 4 sections, where the Section 2 explains the basic principle behind Graph Cut. Section 3 explains different existing weight functions and selection of the optimal weight for optimum result. Section 4 explains the results and discussions followed by conclusion in Section 5. 2. Graph Cut Normalized Cut is an image partitioning approach proposed by Shi and Malik [5]. It is based on graph cut. This approach partitions a collection of pixels by representing them as nodes in a graph that is both undirected and weighted. In this context, the symbol 'V' represents a pixel or node, whereas 'E' represents the edge or the distance between two pixels. Next G=(V, E), an undirected weighted graph, is constructed, where a non-negative weight W is assigned to each edge. The non-negative weight mentioned above is defined as [12]: ๐‘Š(๐‘–, ๐‘—) = ๐‘’ โˆ’โ€–๐น(๐‘–)โˆ’๐น(๐‘—)โ€–2 ๐œŽ๐ผ ร— {0 ๐‘œ๐‘กโ„Ž๐‘’๐‘Ÿ๐‘ค๐‘–๐‘ ๐‘’ ๐‘’ โˆ’โ€–๐‘‹(๐‘–)โˆ’๐‘‹(๐‘—)โ€–2 ๐œŽ๐‘‹ ๐‘–๐‘“ โ€–๐‘‹(๐‘–)โˆ’๐‘‹(๐‘—)โ€–<๐‘Ÿ . (1) In (1) scenario, F(i) represents the feature derived from the intensity, while X(i) represents the spatial location of the ith node. The circle's radius is represented by the variable r, and the pixels are positioned inside this circle. If S1 and S2 are two sets of picture pixels that have no elements in common, then ๏ฆ=๏ƒ‡ =๏ƒˆ 21 21 SS VSS The step-by-step procedure to cut the graph in graph cut is explained in Figure 1, Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 31 No. 5s (2024) 206 https://internationalpubls.com ๏ƒฅ ๏ƒŽ๏ƒŽ = 21 , 21 ),(),( SjSi jiWSScut (2) To partition the graph with optimum accuracy, the cut value mentioned in (2) should be minimize. Based on this concept, the graph cut has been redefined by Shi and Malik [5] and is given in (3). ( )VSassoc SScut VSassoc SScut SSNcut , ),( ),( ),( ),( 2 12 1 21 21 += (3) In a graph, ๐‘Ž๐‘ ๐‘ ๐‘œ๐‘(๐‘†1, ๐‘‰) = โˆ‘ ๐‘Š(๐‘–, ๐‘—)๐‘–โˆˆ๐‘†1,๐‘—โˆˆ๐‘‰ is the total number of connections from nodes in S1 to all the available nodes. Fig. 1. Graph Cut 3. Proposed method for Selection of the weight functions Choosing the right weight function for the Normalized Cut (Ncut) method in image segmentation is a critical step that directly influences the quality and relevance of the segmentation results. The weight function defines the similarity between pairs of pixels or regions, guiding the segmentation process to divide the image into coherent segments based on shared attributes such as color, texture, brightness, and spatial proximity. The selection and tuning of this function require a thoughtful consideration of the image characteristics and the specific goals of the segmentation task. The first step in selecting the right weight function is a thorough analysis of the image characteristics. Images can vastly differ in their content and structure, requiring different approaches for effective segmentation. Color is a primary feature in image segmentation. The choice of color space (RGB, HSV, Lab, etc.) and how color similarity is measured can significantly impact segmentation performance [1-4]. Texture provides critical information in images where color alone is not sufficient Communications on Applied Nonlinear Analysis ISSN: 1074-133X Vol 31 No. 5s (2024) 207 https://internationalpubls.com for differentiation. Texture analysis methods, such as Local Binary Patterns (LBP) or Gabor filters, can enhance segmentation by integrating texture-based similarity into the weight function [4]. The spatial proximity of pixels or regions plays a crucial role in segmenting images with coherent regions. Weight functions that incorporate spatial information can prevent the fragmentation of segments and maintain the continuity of structures [9,15]. Given the diversity of image characteristics, the selection of weight functions is not a one-size-fits-all solution. The choice depends on the specific requirements of the segmentation task and the characteristics of the image to be segmented. 3.1. Gaussian Similarity Function (GSF) One of the most popular weight functions for image segmentation is the Gaussian similarity function. It is particularly effective for capturing the similarity based on intensity or color and spatial proximity (4): W(i, j) = e โˆ’โ€–F(i)โˆ’F(j)โ€–2 ฯƒI ร— {0 otherwise e โˆ’โ€–X(i)โˆ’X(j)โ€–2 ฯƒX if โ€–X(i)โˆ’X(j)โ€–