Previous Article in Journal
Nonequilibrium Steady States in Active Systems: A Helmholtz–Hodge Perspective
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Novel Entropy-Based Approach for Thermal Image Segmentation Using Multilevel Thresholding

by
Thaweesak Trongtirakul
1,*,
Karen Panetta
2,
Artyom M. Grigoryan
3,* and
Sos S. Agaian
4
1
Department of Electrical Engineering, Faculty of Industrial Education, Rajamangala University of Technology Phra Nakhon, Bangkok 10300, Thailand
2
School of Engineering, Tufts University, Medford, MA 02155, USA
3
Department of Electrical and Computer Engineering, The University of Texas at San Antonio, San Antonio, TX 78249, USA
4
College of Staten Island and the Graduate Center, City University of New York (CUNY), Staten Island, NY 10314, USA
*
Authors to whom correspondence should be addressed.
Entropy 2025, 27(5), 526; https://doi.org/10.3390/e27050526
Submission received: 31 January 2025 / Revised: 6 May 2025 / Accepted: 12 May 2025 / Published: 14 May 2025

Abstract

:
Image segmentation is a fundamental challenge in computer vision, transforming complex image representations into meaningful, analyzable components. While entropy-based multilevel thresholding techniques, including Otsu, Shannon, fuzzy, Tsallis, Renyi, and Kapur approaches, have shown potential in image segmentation, they encounter significant limitations when processing thermal images, such as poor spatial resolution, low contrast, lack of color and texture information, and susceptibility to noise and background clutter. This paper introduces a novel adaptive unsupervised entropy algorithm (A-Entropy) to enhance multilevel thresholding for thermal image segmentation. Our key contributions include (i) an image-dependent thermal enhancement technique specifically designed for thermal images to improve visibility and contrast in regions of interest, (ii) a so-called A-Entropy concept for unsupervised thermal image thresholding, and (iii) a comprehensive evaluation using the Benchmarking IR Dataset for Surveillance with Aerial Intelligence (BIRDSAI). Experimental results demonstrate the superiority of our proposal compared to other state-of-the-art methods on the BIRDSAI dataset, which comprises both real and synthetic thermal images with substantial variations in scale, contrast, background clutter, and noise. Comparative analysis indicates improved segmentation accuracy and robustness compared to traditional entropy-based methods. The framework’s versatility suggests promising applications in brain tumor detection, optical character recognition, thermal energy leakage detection, and face recognition.

1. Introduction

Entropy, a concept introduced by Clausius in 1865 to quantify unusable energy in thermodynamic systems, has since become a cornerstone of modern science. Boltzmann, Gibbs, and others later provided an atomic interpretation of entropy within statistical mechanics and gas dynamics, establishing its foundational role in describing non-equilibrium processes through the second law of thermodynamics and the principle of maximum entropy production. In the mid-20th century, Claude E. Shannon redefined entropy as a measure of uncertainty or randomness in datasets, laying the groundwork for its application in information theory. Today, entropy and entropic forces are integral to innovative approaches in artificial intelligence and the study of collective behavior, underscoring their significance across diverse scientific disciplines.
Entropy has become a powerful tool for quantifying an image’s complexity in image processing. It is widely employed in compression, segmentation, quality assessment, and feature extraction tasks. A high entropy value generally indicates a complex image featuring a broad range of pixel values, while a low entropy value implies a more straightforward, more uniform image [1]. For example, entropy analysis can assess an image’s complexity to assist in identifying the best compression method without substantial information loss [2]. By quantifying the randomness or uncertainty in pixel values, entropy provides insights into the quantity of redundant or compressible information in an image, facilitating efficient data storage and transmission [3]. Likewise, entropy plays a role in image quality assessment and feature extraction. High entropy values often indicate more detailed and complex images, which are typically richer in information [4,5]. This property makes entropy a valuable metric for assessing image quality, as higher entropy generally correlates with greater detail and visual complexity. In feature extraction, entropy helps identify information-rich areas within an image. Regions with high entropy are often prioritized for further analysis because they likely contain significant features or patterns of interest [6,7]. This capability is beneficial in applications like object detection, segmentation, and pattern recognition, where it is crucial to distinguish meaningful regions from the background [8].
This paper focuses on applying entropy-based techniques to image segmentation, particularly in identifying illegal activities from images captured by thermal infrared (TIR) cameras in challenging environments [9,10,11]. Monitoring protected areas to reduce illegal activities, like poaching and wildlife trafficking, poses a significant and complex challenge [12]. These activities threaten biodiversity and disrupt the ecological balance, undermining global conservation efforts. Effective management and surveillance require advanced technologies, such as remote sensing, drones, and artificial intelligence (AI), to enhance the detection, prevention, and response to these threats [13,14]. Addressing these issues is crucial for ensuring the long-term conservation of biodiversity and the sustainability of ecosystems.
Recent advancements in aerial imaging technologies have resulted in widespread use of satellite and Unmanned Aerial Vehicle (UAV)-based data for various applications, such as surveillance and monitoring. Nevertheless, imagery captured in the visible spectrum often faces limitations in low-light environments or adverse weather conditions [15,16]. The growing interest in using sensors in the near-infrared (NIR) and thermal infrared (TIR) spectrums, driven by significant cost reductions, has enabled improved detection and tracking capabilities in more challenging environments. This advancement marks a significant step forward in enhancing surveillance and management of protected areas [17,18].
Detecting illegal activities from TIR images in challenging environments requires an efficient digital signal processing framework, especially using segmentation techniques. These methods aid in differentiating and identifying suspicious objects against the terrain in the captured imagery [19]. This segmentation is essential for identifying illegal activities, such as human movement in forested areas or the use of hunting tools [20]. Using digital signal processing for segmentation makes it possible to enhance the detection and tracking of these activities, reducing the image analysis’s complexity. Furthermore, this approach boosts the operational efficiency of law enforcement by speeding up the response time to potential threats or illegal actions [21,22].
Segmentation primarily focuses on isolating regions of interest, such as heat signatures from humans or animals, which may indicate illegal activities like poaching or logging. The goal is to differentiate these heat sources from the background, which typically represents the natural environment or terrain. One commonly used method for image segmentation is thresholding, where pixel values are categorized into distinct segments based on a predefined threshold. However, identifying the optimal threshold can be challenging, especially without prior knowledge of the image’s content. Various extensions of entropy, including Boltzmann–Gibbs, Tsallis, Renyi, Kapur, and Masi entropies, have been developed and employed for image segmentation [1,23,24,25,26,27,28,29,30,31,32]. These entropy measures offer unique advantages and disadvantages [32,33,34,35].
In 1985, Kapur introduced entropy [29] as a popular method for image segmentation. However, it has several limitations: (i) Sensitivity to noise, particularly in low-contrast or noisy images [36]. TIR (thermal infrared) images, which often contain thermal noise or artifacts, can produce inaccurate entropy calculations, resulting in suboptimal thresholding and poor segmentation performance. (ii) The assumption of a bimodal distribution of pixel intensities, meaning it is most effective when the image can be divided into two distinct regions (e.g., foreground and background). However, the method may struggle to generate accurate thresholds in complex images with multi-modal intensity distributions, such as those featuring varying heat sources or cluttered backgrounds [37]. (iii) Computational complexity. Calculating the entropy for each potential threshold value requires evaluating the distribution of pixel intensities across multiple segments, which can be computationally demanding, especially for large images or real-time applications. This may limit the scalability and efficiency of Kapur entropy in large-scale surveillance systems or scenarios that need rapid processing [38]. (iv) Limited contextual awareness. The method considers only the statistical distribution of pixel intensities without incorporating spatial information or contextual relationships between pixels, potentially missing critical structural details in the image. (v) Parameter sensitivity. The effectiveness of entropy-based methods can be highly dependent on parameter selection, requiring careful tuning for optimal performance across different imaging conditions [39].
Moreover, Kapur’s entropy significantly relies on the assumption that the background and foreground can be separated solely based on intensity differences. In some cases, the thermal signatures of objects may overlap with the background, particularly in dynamic environments or under varying thermal conditions, which can diminish the effectiveness of segmentation. A key limitation of Kapur entropy for segmentation is that it often necessitates preprocessing steps, such as image enhancement, to improve its effectiveness. Since Kapur entropy is grounded in intensity thresholding, it assumes that the regions of interest (like the heat signatures of humans or animals) are distinguishable from the background due to their thermal characteristics. However, TIR images may frequently suffer from low contrast or poor visibility due to environmental noise, fluctuating thermal conditions, or similar temperature values in the foreground and background.
To address these challenges, this paper proposes a novel entropy-based multilevel thresholding approach for improved thermal image segmentation. The proposed method is evaluated on the BIRDSAI datasets [40], benchmarking the automatic detection and tracking of humans and animals in both real and synthetic videos. The key contributions of this work are as follows:
  • Image enhancement techniques specifically designed for TIR images improve visibility and contrast in regions of interest. These methods emphasize the thermal signatures of objects, such as humans or animals, making them more distinguishable from the background. This step is essential for enhancing the performance of subsequent segmentation processes.
  • An innovative entropy-based segmentation technique tailored for TIR images is presented. The proposed method employs advanced entropy measures to determine the optimal multilevel threshold, enabling more precise separation of foreground and background regions, even in challenging, low-contrast TIR images.
Through these contributions, we aim to enhance the detection and monitoring of illegal activities in natural environments using TIR imaging, thereby supporting global conservation efforts. The remainder of this paper is structured as follows: Section 2 provides a comprehensive overview of entropy-based segmentation techniques. Section 3 presents the proposed methodology, including image enhancement techniques for TIR images and the innovative entropy-based segmentation approach. Section 4 showcases the results of computer simulations, followed by a discussion of the findings. Finally, Section 5 concludes the paper with a summary of the contributions and suggests potential directions for future research.

2. Background

Image segmentation is a fundamental task in computer vision and image processing, enabling the extraction of meaningful regions of interest (ROIs) from complex visual data. Among the various segmentation techniques, entropy-based methods have gained prominence for their ability to quantify uncertainty and randomness in pixel intensity distributions, making them especially effective for thresholding applications. This section reviews key entropy formulations and their roles in segmentation, focusing on thermal infrared (TIR) imaging, where isolating heat signatures from noisy backgrounds remains a significant challenge. In this paper, we define the ROIs within a thermal image X a , b as the set of pixels that meet a predefined entropy-based thresholding criterion ( T ) :
Ω = a , b | X a , b T Φ ,
where T Φ is the optimal threshold, as defined in Section 2.2.

2.1. Entropy in Image Segmentation

Entropy, which comes from information theory, measures the unpredictability or dispersion of data. In imaging, it quantifies the variability in pixel intensities, with higher entropy values indicating greater randomness. Several formulations of entropy have been adapted for segmentation:
H ( x ) = i p x i log p x i ,
where p x i is the probability of intensity x i . It underpins thresholding techniques by maximizing the total entropy of segmented regions (e.g., foreground vs. background). While effective for basic segmentation, Shannon entropy assumes separable intensity distributions and struggles with multi-modal or noisy data.
Tsallis Entropy: A generalization of Boltzmann–Gibbs entropy [41], Tsallis entropy [42] introduces a non-extensive parameter, q . This parameter enables tuning for sensitivity to multi-modal distributions, making it suitable for complex images. However, its performance hinges on the careful selection of q .
H ( x ) = 1 q 1 1 i p q x i ,
Renyi Entropy: it extends Shannon entropy with a parameter α α to emphasize sparsity or concentration [43]:
H ( x ) = 1 1 α log i p α x i ,
While adaptable to subtle intensity variations, its computational complexity limits scalability.
Kapur Entropy: it optimizes thresholding for bimodal histograms by splitting intensities into the foreground H 0 and background H 1 [4]:
H 0 x = i = 0 T p x i P 0 log p x i P 0 ;       H 1 x = i = T + 1 L 1 p x i P 1 log p x i P 1 ,
where P 0 and P 1 are cumulative probabilities. Despite its simplicity, Kapur entropy is sensitive to noise and fails for multi-modal or overlapping distributions.
Masi Entropy: it introduces a flexibility parameter, r , to handle complex distributions [44]:
H 0 x = 1 1 r log 1 1 r i = 0 T p x i P 0 log p x i P 0 and   H 1 x = 1 1 r log 1 1 r i = T L 1 p x i P 1 log p x i P 1
Though promising for diverse intensity profiles, its real-time applicability remains underexplored.

2.2. Thresholding Techniques and Challenges

Multilevel thresholding techniques have been widely studied using entropy-based methods, such as Shannon, Kapur, and Tsallis entropy. These approaches leverage statistical information to determine optimal threshold values for segmentation. Meta-heuristic optimization techniques like Genetic Algorithms (GAs) and Particle Swarm Optimization (PSO) strive to find optimal or near-optimal solutions to complex optimization problems where traditional methods may fall short as shown in Table 1. For threshold selection specifically, these techniques have the following objectives:
  • Identify optimal threshold values that maximize segmentation accuracy;
  • Decrease computational complexity compared to exhaustive search methods;
  • Prevent getting trapped in local optima in a complex fitness landscape;
  • Address multi-dimensional optimization problems involving multiple thresholds.
Application to Threshold Selection: For threshold selection in image segmentation or signal processing, these meta-heuristics can automatically determine optimal thresholds without an exhaustive search; adapt to different image characteristics and noise conditions; optimize multiple criteria simultaneously (e.g., between-class variance and entropy); and scale to multilevel thresholding problems more efficiently than traditional methods. Both the GA and PSO have proven effective for threshold selection, with the choice between them typically depending on the specific application constraints, the computational resources available, and the complexity of the fitness landscape. However, recent advancements have leveraged meta-heuristic optimization techniques such as the Genetic Algorithm (GA) [45] and Particle Swarm Optimization (PSO) [46] to enhance threshold selection efficiency [47]. These methods iteratively refine threshold positions using evolutionary strategies, often resulting in improved segmentation accuracy. However, their computational cost is significantly higher than that of entropy-based methods.

2.2.1. Bilevel vs. Multilevel Thresholding

Bilevel thresholding partitions an image into two classes (e.g., object and background) by optimizing entropy at a single threshold. For multilevel thresholding, the intensity histogram is divided into n intervals using thresholds T 1 , T 2 , , T n , maximizing the joint entropy:
T Φ = argmax 0 < T 1 < < T n < L 1 H 0 + H 1 + + H n ,
while multilevel approaches better handle complex images, the computational complexity escalates exponentially, posing a significant optimization challenge.

2.2.2. Limitations in Thermal Infrared (TIR) Imaging

Thermal infrared imaging is crucial for applications such as surveillance, medical diagnostics, and environmental monitoring, where isolating heat signatures from cluttered backgrounds is essential. However, TIR images inherently exhibit low contrast, thermal noise, and overlapping intensity profiles between foreground objects (e.g., humans and machinery) and backgrounds. These challenges complicate segmentation, as traditional intensity-based methods often struggle to distinguish regions of interest (ROIs) under such conditions. Kapur entropy, a widely used method for thresholding, maximizes the entropy of segmented regions to identify an optimal threshold. Applying entropy to bilevel thresholding involves selecting a threshold that maximizes the entropy of segmented regions. While effective for simple cases, bilevel thresholding is limited when handling images with multiple regions of interest.
To address the limitations of bilevel thresholding in complex TIR images, multilevel thresholding partitions the intensity of the histogram into multiple intervals, each representing a distinct region (e.g., background, human, and machinery). Advanced entropy measures, including Tsallis and Renyi, are employed to optimize thresholds. For Kapur entropy, the multilevel extension is defined as
H t o t a l = k = 0 n H k       ;       H k = i = T k T k + 1 log p x i P k ,
where P k denotes the cumulative probability of the k -th class.
While this approach enhances the segmentation of multi-modal TIR data, the inherent limitations of Kapur entropy, including noise sensitivity and computational cost, persist, particularly as the number of thresholds increases. Additionally, Kapur’s entropy relies heavily on the assumption that the background and foreground can be separated solely based on intensity differences. In specific scenarios, the thermal signatures of objects may overlap with the background, particularly in dynamic environments or under varying thermal conditions, which can diminish the effectiveness of segmentation. A notable limitation of Kapur entropy for segmentation is its frequent requirement for preprocessing steps, such as image enhancement, to boost its effectiveness. Since Kapur entropy depends on intensity-based thresholding, it assumes that regions of interest (such as the heat signatures of humans or animals) are distinguishable from the background based on their thermal characteristics. However, TIR images may encounter low contrast or poor visibility in many situations due to environmental noise, varying thermal conditions, or comparable temperature values in the foreground and background.
To address the issues mentioned, image enhancement techniques are often necessary to highlight the region of interest and improve the contrast between foreground objects and the background. Without such preprocessing, the Kapur entropy method may struggle to accurately determine an optimal threshold, leading to suboptimal segmentation outcomes. Therefore, image enhancement techniques like contrast adjustment, noise reduction, or filtering are crucial to ensuring that the segmentation process based on Kapur entropy produces reliable and meaningful results.

2.3. A-Entropy

As mentioned above, entropy is widely used to measure uncertainty or information content in image processing. Shannon entropy is a fundamental concept in information theory that quantifies uncertainty or randomness in a system, providing a measure of a source’s information content. Shannon entropy has extensive data compression, communication systems, and image processing applications. Shannon entropy H s for a discrete random variable i with possible outcomes i 1 , i 2 , . . , i n and corresponding probabilities p i is given by
H s = i = 1 n p i log p i ,
where p i denotes the global probability density function of the occurrence of the outcome i .
Meanwhile, Shannon entropy highlights a significant limitation in spatial awareness. Current entropy models, such as Shannon, Tsallis, and Renyi entropy, are calculated only from the probability distribution function (PDF) of pixel intensities, overlooking the spatial arrangement of those pixels. Consequently, when the pixels in an image are randomly shuffled, the PDF remains unchanged, resulting in identical entropy values for both the original and shuffled images. This limitation persists even though the two images are visually distinct, as demonstrated in Figure 1.
To illustrate the limitation of global statistical image quality assessments (IQAs), Table 2 presents the inadequacy of global metrics, where the standard deviation ( σ ), Shannon entropy H s , Tsallis entropy H t , and Renyi entropy H r are compared before and after pixel shuffling. Despite the loss of structural coherence, these metrics remain unchanged, as they are influenced solely by the statistical distribution of pixel intensities.

2.3.1. Block-Based Probability Density Functions (BPDFs)

The new model is specifically designed to overcome the spatial insensitivity of traditional entropy measures by integrating local spatial information within block-based regions. This approach provides a comprehensive representation of image content, allowing better differentiation between visually distinct images with the same global intensity histograms. The formulation of the proposed A-Entropy is
H = i = 1 n p i x , y Ω ω x , y Ω + ε γ tan γ log p i x , y Ω ω x , y Ω + ε ,
where p i x , y Ω denotes the probability density of pixel intensities within a block Ω , ω x , y Ω refers to a weighting factor to normalize probabilities within each block, γ represents an adjustable parameter that controls sensitivity to probability variations, and ε is a small constant to avoid undefined behavior during computation.
Local PDFs extend the traditional concept of global statistical analysis by dividing the image into localized regions and analyzing the statistical characteristics within each region. By leveraging localized intensity distributions, entropy-based analyses can capture the spread or concentration of intensity values in specific areas, thus addressing the limitations of global metrics. Table 3 presents a comparative analysis of entropy-based metrics using local information.

2.3.2. Monotonic Properties

The incorporation of local PDFs demonstrates an improvement in detecting structural changes, making them a more accurate and reliable approach to IQA. In addition, when applied to enhanced images, the metrics measure increases in contrast by analyzing the spread and concentration of intensity values within localized regions. Higher Degree-of-Enhancement (DoE) values correspond to greater contrast improvements, as reflected in entropy-based metrics, as shown in Figure 2 and Figure 3, and Table 4.
The results presented in Table 3 demonstrate the performance of various kernel-based metrics, including Enhancement Measure Estimation (EME), Enhancement Measure Estimation by Entropy (EMEE), Average Michelson Contrast Estimation (AME), Average Michelson Contrast Estimation by Entropy (AMEE), and the proposed entropy-based metric, across images with increasing Degrees of Enhancement (DoEs). These metrics collectively capture the effects of enhancement on image quality in terms of contrast.
The values for all metrics show a consistent monotonic increase with higher DoE levels across all images (Image1, Image2, and Image3), as illustrated in the accompanying figure. This trend confirms the effectiveness of the proposed entropy model, where an increased DoE correlates with improved contrast and structural clarity in the images. The proposed metric steadily rises, more accurately representing structural and contrast changes. This is particularly evident in the uniformity of its response across all tested images.

3. Proposed Method

This section introduces an effective method of multi-threshold image segmentation based on entropy. The implementation steps are detailed below.

3.1. Entropy-Based Image Segmentation with Adaptive Gamma Correction

Utilizing an entropy-based measure to tackle multi-thresholding challenges in image segmentation involves mapping solutions to problems. By leveraging entropies, measurable uncertainty, or information content metrics, segmentation methods aim to partition images into distinct regions by maximizing information gain. This approach has proven effective in scenarios requiring optimal threshold determination, such as separating foreground from background regions or distinguishing objects of interest within complex scenes. Despite its advantages, the entropy-based method faces limitations, including sensitivity to noise, high computational demands, and reliance on global thresholding strategies. These challenges drive ongoing research aimed at refining entropy-based segmentation techniques. To address these issues, the proposed concept employs the principles of entropy-based image segmentation. The method begins with adaptive gamma correction applied to the input image to enhance contrast and adjust for variations in illumination. This preprocessing step ensures that the image’s dynamic range is optimized for segmentation tasks, making it more suitable for entropy-based analysis.
The motivation behind the proposed method is to integrate entropy-based image segmentation techniques with local probability density functions (PDFs) in both the logarithmic and trigonometric domains. By transforming the image data into these domains, the algorithm can more effectively capture both the global and local characteristics of the image, as shown in Algorithm 1.
Algorithm 1: Entropy-based multilevel thresholds.
Input:    Input   thermal   image ,   I ,   of   size   M × N .
        Number   of   thresholds ,   T n .
Output:  Optimal   thresholds ,   T Φ .
Normalize   intensity   value :   I n o r m I max I
Compute   histogram :      h i x = 1 M y = 1 N δ I n o r m x , y i   ; i 0 , L 1 ,   where   L
              denotes   the   number   of   intensity   levels   and   δ refers to the Dirac
            delta function.
Compute   PDF :        p i h i i = 0 L 1 h i
Compute   the   cumulative   weight :   ω s i s p i ,   where   ω s   represents   the   cumulative
                 weight   of   segment   s .
Define   the   entropy   function :   E s i s p i ω s + ε · tan log p i ω s + ε ,   where   ε is a constant.
Initialization :          E m a x   and   T Φ 0,0 , . . . , 0   of   size   T n .
For   a = 1  Do
     For   b = a + 1  Do
     ForDo
Partition   the   intensity   range   into   T n segments:
          S k i | t k 1 i t k   ,     k 1,2 , , T a i | t k 1 i t k   ,     k T a + 1 , , T b i | t k 1 i t k   ,     k T n 1 , , T n   where   T 0 0 .
Compute the total entropy for the current threshold:
          E T k = 1 T a E S k + + k = T n L 1 E S k
          If     E T > E m a x
              E m a x E T
              T Φ T a , T b , , T n
          End
       End
   End
End
Algorithm 1 outlines the detailed computational process of the proposed multilevel entropy-based thresholding method, providing a structured framework for guiding the segmentation procedure. By integrating this approach with the iterative multilevel thresholding technique, the segmentation process is further enhanced through the iterative refinement of threshold values. This refinement, driven by entropy optimization, ensures more accurate segmentation of regions within the image, particularly for complex images with varying intensity distributions, as detailed in Algorithm 2.
To maintain computational stability, the initial entropy value is set to , as shown in Algorithm 1. Additionally, to prevent division errors when p i = 0 , the calculation is skipped by setting ε to 1, as defined in the entropy function in Algorithm 1.
Algorithm 2: Iterative multilevel thresholding image segmentation.
Input:    Input   thermal   image ,   I ,   of   size   M × N .
        Number   of   thresholds ,   T n .
Output:  Segmented   image ,   B .
T Φ   Call   Algorithm   I   ( I , T n 1 ) .
Calculate   the   mean   intensity :   μ i I > T Φ I i C o u n t o f   I > T Φ
Compute   γ :            γ e μ max I 2 max I 2
Generate   a   mapping   function :   f i log i L 1 1 i L 1 + γ
Rescale   f i   to   0 , L 1 :     f i f i min f i max f i min f i · ρ · L 1
Apply   f i   to   the   image :     Y f I i   ; i 1,2 , , M × N
T Φ   Call   Algorithm   I   ( Y , T n n ) .
Partition   the   intensity   into   n + 1   segments :   S k p | p t 1                               ,     k 1 p | t k 1 < p t k   ,     k 2 , , n p | p > t n                               ,     k n + 1
Compute   the   local   mean   for   each   S k :   μ k p S k p S k
Assign   μ k   to   all   pixels   in   S k :       G p μ k
T Φ   Call   Algorithm   I   ( G , T n 1 ) .
Binarize   G   using   T Φ :          B 0 ,     G p T Φ 1 ,     G p > T Φ
This algorithm performs multilevel thresholding-based segmentation on thermal images using an iterative approach. The primary objective is to adaptively enhance the foreground, efficiently remove the background, and reduce the computational complexity of threshold determination.

3.2. Adaptive Image Enhancement

The proposed algorithm introduces an adaptive image enhancement framework designed to improve the visibility and contrast of bright regions while minimizing irrelevant background details. Unlike conventional image enhancement techniques that rely on statistical histogram-based values, this method dynamically adjusts the gamma parameter γ φ according to the global intensity properties of the input image. The gamma value is computed using the global mean intensity μ and the maximum intensity value I m a x of the image, as defined by
γ φ = e μ I m a x / 2 I m a x / 2 ,
here, μ represents the global mean intensity of an input image I , enabling the algorithm to adapt to varying lighting and contrast conditions. This adaptive computation ensures that the gamma value aligns with the image’s inherent characteristics, preventing over- or under-enhancement. Following the gamma calculation, a logit-based transformation is applied to amplify foreground homogeneity and suppress background noise. The transformation function is expressed as
f i = log i / L 1 1 i / L 1 + γ φ + ρ ,
where i is the pixel intensity, L is the total number of intensity levels (e.g., 256 for an 8-bit image), γ φ is the adaptive parameter from Equation (11), and ρ is a constant. This function enhances contrast by non-linearly redistributing intensity values (see Figure 4), emphasizing subtle differences in foreground regions while attenuating background variations. The proposed image enhancement technique achieves a balanced improvement tailored to the specific content of the image by integrating global intensity statistics with a logit transformation. This approach optimizes the balance between foreground visibility and background suppression, enabling more accurate segmentation and analysis.
The experimental results validate the efficacy of the proposed image enhancement approach in optimizing image segmentation tasks. Figure 5 illustrates how dynamically computed gamma values refine the balance between foreground enhancement and background suppression. When gamma values are set lower than the proposed adaptive parameter, the transformation creates a pronounced separation between the foreground and background. For example, in Figure 5h, the kangaroo (region of interest) is accentuated by brighter intensities, while the background is uniformly darkened, minimizing distractions and improving focus on critical structures. This selective enhancement directly enhances segmentation accuracy by amplifying contrast gradients between the foreground and background, even in low-contrast scenarios.
Figure 6 compares the proposed method’s segmentation outcomes with traditional entropy-based approaches (Kapur, Masi, and Renyi) on images with complex intensity distributions. Key observations include the following: (i) Kapur’s method is prone to over-segmentation, especially in regions with high intensity variability, resulting in fragmented outputs that lack structural coherence; (ii) Masi’s method struggles with boundary delineation, failing to capture precise object contours; and (iii) Renyi’s method improves object definition compared to Kapur and Masi methods but retains residual noise and compromises structural continuity. In contrast, the proposed method achieves clean, cohesive segmentation by leveraging adaptive image enhancement. It effectively suppresses noise, isolates primary objects, and preserves structural integrity, aligning closely with human perceptual expectations. The proposed method also demonstrates superior adaptability to intensity variations through its smooth and distinct probability density function (PDF). Unlike traditional entropy-based techniques, which exhibit erratic PDFs in heterogeneous regions, the adaptive image enhancement ensures a balanced intensity redistribution. This results in a more robust segmentation framework capable of handling complex lighting and contrast conditions.
Additionally, the comparative analysis in Figure 7 highlights the critical role of the parameter ρ in balancing contrast enhancement and background suppression. When ρ is adaptively derived from the image’s global mean intensity ( μ ) , as in the case of ρ = μ / 10 γ , as shown in Figure 7b, the enhancement process prioritizes context-aware adjustments. This adaptive setting produces a histogram, as shown in Figure 7c, with a broader intensity distribution, indicating improved dynamic range and contrast in regions of interest. Such adaptive tuning aligns the enhancement with the image’s inherent intensity characteristics, ensuring that foreground details are accentuated without overamplifying noise.
In contrast, a fixed ρ = 2 , as shown in Figure 7d, results in a more uniform enhancement effect. The corresponding histogram, as shown in Figure 7e, exhibits a narrower intensity spread, suggesting aggressive background suppression at the cost of reduced contrast in mid-tone regions. While this setting effectively darkens non-critical areas, it risks over-smoothing subtle foreground textures, particularly in scenes with low baseline contrast.

4. Computer Simulation Results and Discussion

We implemented the proposed approach using the computer language MATLAB2024b on a personal computer with 16 GB of memory and a CPI of Apple M2 Pro running macOS Sequoia 15.2 (24C101). To show the advantages of this method, we performed several experiments on the BIRDSAI dataset [40], which is used to detect wildlife from thermal imagery, namely, Image4, Image5, and Image6, as shown in Figure 8. We applied the same preprocessing procedure to all methods before segmentation to ensure a fair comparison. This preprocessing step included adaptive image enhancement to improve segmentation accuracy. We then compared the proposed algorithm with various entropy-based image thresholding methods, including the Shannon [48], Tsallis [42], Renyi [43], Kapur [4], and Masi [44] methods.

4.1. Databases

The BIRDSAI dataset facilitates research in aerial wildlife monitoring, conservation, and anti-poaching surveillance. It provides a blend of real and synthetic aerial thermal infrared (TIR) images to support domain adaptation and robust algorithm development under challenging visual conditions [33]. Figure 9 shows some sample images from the real and synthetic datasets.
This dataset features aerial TIR images of protected African areas and is designed for object detection, domain adaptation, and tracking of humans and animals. It is the first large-scale dataset from a fixed-wing UAV across multiple African sites, containing 48 real and 124 synthetic videos, totaling 62,000 and 100,000 images, respectively. The data include nine classes: human, elephant, and lion (real and synthetic); giraffe and dog (real); and crocodile, hippo, zebra, and rhino (synthetic). Synthetic data were generated using AirSim with a 3D savanna model and a TIR camera simulation.
Real data were collected using battery-powered fixed-wing UAVs in South Africa, Malawi, and Zimbabwe, with the specific locations withheld for security. Nighttime flights, lasting 1.5–2 h, occurred at altitudes of 60–120 m and speeds of 12–16 m/s, using FLIR Vue Pro 640 and Tamarisk 640 cameras. Temperature conditions varied seasonally, with winter nights ranging from below 0 °C to 4 °C and summer nights from 18 to 20 °C. Challenges included warm ground temperatures, reducing thermal contrast post-sunset, and occasional fog-induced “whiteouts”.
The kangaroo (Macropodidae) dataset [49] provides regularly captured images from thermal imaging surveys. The imagery in this database was collected by the Department of Primary Industry, New South Wales (NSW), and the Department of Primary Industries and Regional Development, Western Australia, as illustrated in Figure 10.

4.2. Objective Results

In evaluating the performance of our model, the performance of six methods—Shannon [48], Tsallis [42], Renyi [43], Kapur [4], Masi [44], and the proposed method—was evaluated across six critical metrics: accuracy, Boundary F1 (BF) score, Sørensen–Dice Similarity, Jaccard Similarity, precision, and recall. The evaluation was conducted using three thresholds (k = 1, 2, 3) on selected test images (Image4, Image5, and Image6) due to space constraints.

4.2.1. Metric Descriptions

The evaluation of semantic segmentation can be quite complex because it is necessary to measure classification accuracy and localization correctness. The aim is to score the similarity between the predicted (prediction) and annotated segmentation (ground truth). The evaluation metrics used in this paper are summarized in Table 5.
Based on the literature and practical considerations, it is helpful to combine different metrics. Individual metrics such as accuracy, the Dice Similarity Coefficient (DSC), Boundary F1 score (BF), Jaccard Similarity (IoU), precision, and recall each provide unique approaches but also have limitations. For instance, accuracy is simple to compute, but it can be misleading in imbalanced datasets. The DSC and IoU are effective for measuring region overlap but may overlook boundary precision. In contrast, the BF score captures boundary alignment but is less informative about the overall region accuracy.
Table 6 presents a comparative summary of the strengths and limitations of the key evaluation metrics in image segmentation evaluation [50].
By integrating these advantages and compensating for individual weaknesses, a Combined Score (CS) is introduced. It is calculated by weighting two key metrics: the Dice Similarity Coefficient (DSC) and the Boundary F1 score (BF):
C S = ω m · D S C + 1 ω m B F
where ω m is a constant.

4.2.2. Performance Analysis

Table 7 presents the segmentation accuracy across various entropy-based thresholding methods under different numbers of thresholds. The results indicate that the proposed method achieves the highest accuracy, particularly in the single-threshold case (k = 1), with scores of 0.9997, 0.9990, and 0.9978 for Image4, Image5, and Image6, respectively. While Masi is competitive, with scores of 0.9924, 0.9945, and 0.9841, it trails the proposed method. For k = 2, the proposed method performs well, with accuracies of 0.9841, 0.9918, and 0.9672, although Kapur and Masi show comparable results, particularly for Image5 and Image6. At k = 3, the proposed method maintains high accuracy (0.9751, 0.9877, and 0.9458), although Renyi and Masi slightly outperform it in some cases. Typically, entropy-based segmentation relies on histogram bin separation, and using a single threshold makes it challenging to segment all regions accurately. However, the proposed method demonstrates robust performance even under this constraint.
Table 8 presents the Boundary F1 (BF) scores for various entropy-based thresholding methods across different numbers of thresholds. The results show that Masi delivers the highest boundary precision across all images and threshold settings. Notably, Masi achieves near-perfect scores at k = 3, with values of 0.9944 for Image4, 0.9964 for Image5, and 0.9541 for Image6. These results demonstrate Masi’s effectiveness in delineating object boundaries, especially in higher-threshold scenarios.
The proposed method also performs competitively, particularly for a single threshold (k = 1), achieving BF scores of 0.9821, 0.8964, and 0.9412 for Image4, Image5, and Image6, respectively. However, its performance slightly declines as the number of thresholds increases, suggesting that it is especially well suited for low-complexity segmentation tasks. For k = 2 and k = 3, the proposed method trails Masi. This indicates room for improvement in handling more complex multi-threshold segmentation cases. Renyi and Kapur show strong performance in multi-threshold scenarios. For instance, Renyi achieves the highest BF score (0.9986) on Image5 for k = 3. It outperforms the proposed method and closely matches Masi. Kapur also performs well. It reaches scores of up to 0.9877 on Image5 and Image6. In contrast, Shannon and Tsallis exhibit poor boundary performance, especially for multi-threshold settings (k = 2 and k = 3).
Overall, while Masi leads in boundary accuracy across all settings, the proposed method remains highly competitive for single-threshold segmentation. Its strong performance at k = 1 makes it an attractive option for real-time or resource-constrained applications. The low computational overhead further supports its suitability where accurate boundary preservation is essential.
Table 9 presents the Sørensen–Dice Similarity scores for various entropy-based thresholding methods across different numbers of thresholds. The proposed method achieves the highest similarity scores for single-threshold segmentation (k = 1) on all three images, with values of 0.9966, 0.9799, and 0.9850 for Image4, Image5, and Image6, respectively. This demonstrates the method’s strong ability to preserve object regions in low-complexity segmentation tasks. However, the performance of the proposed method declines as the number of thresholds increases. At k = 2 and k = 3, the similarity scores drop significantly, especially for Image6 (0.7035 and 0.3907, respectively). This suggests that the method is less effective in handling complex segmentation tasks that require multiple thresholds. In contrast, Masi shows strong and consistent performance across all threshold levels. It delivers high Sørensen–Dice scores, particularly at k = 3, with values of 0.9517, 0.9408, and 0.9846 across Image4, Image5, and Image6, respectively. Masi’s stability makes it a strong alternative for multi-threshold segmentation scenarios. Renyi and Kapur also perform well in multi-threshold cases, especially at k = 3, with Renyi achieving over 0.92 for all images. Kapur shows notable improvement at k = 3 on Image4 and Image6. It reaches scores of 0.8551 on Image4 and 0.8749 on Image6. On the other hand, Shannon and Tsallis perform poorly, particularly in multi-threshold settings. Their scores drop sharply with increasing thresholds. This indicates their limited capability in accurately segmenting complex scenes.
In summary, the proposed method excels in single-threshold segmentation. It offers near-perfect similarity to the ground truth with minimal computational demand. However, methods like Masi or Renyi may offer more consistent performance for applications requiring more intricate, multi-threshold segmentation. However, visual comparison offers a similar output. As mentioned above, based on the literature and practical considerations, the above metrics do not always work well for all kinds of image segmentation [50].
Table 10 presents Jaccard Similarity scores for different entropy-based thresholding methods across varying numbers of thresholds. The proposed method achieves the highest scores for a single threshold (k = 1) on all images, with values of 0.9933 (Image4), 0.9607 (Image5), and 0.9704 (Image6). This indicates exceptional overlap between the segmented results and the ground truth when using a single threshold, confirming the proposed method’s reliability in low-complexity segmentation tasks. However, as the number of thresholds increases, the performance of the proposed method declines noticeably. For k = 2, the scores drop to 0.6761, 0.6515, and 0.5426 for Image4, Image5, and Image6, respectively. At k = 3, the scores decrease further, particularly on Image6, for which the score reaches only 0.2428. This suggests a significant reduction in segmentation accuracy under complex multi-threshold conditions. In contrast, Masi shows strong and consistent performance across all thresholds, especially at k = 3, achieving 0.9079, 0.8882, and 0.9696 for Image4, Image5, and Image6, respectively. This highlights Masi’s robustness in more complex segmentation scenarios. Renyi and Kapur also show improved performance as the number of thresholds increases, particularly on Image4 and Image6. For example, Renyi reaches 0.8785 on Image5 and 0.8586 on Image6 at k = 3. It outperforms the proposed method in multi-threshold settings. On the other hand, Shannon and Tsallis exhibit weak performance, especially for k = 2 and k = 3, where scores drop significantly across all images. This indicates their limited suitability for detailed segmentation.
The proposed method excels in single-threshold segmentation with high similarity and low computational cost. This makes it well suited for applications requiring real-time processing and simple segmentation. Alternative methods like Masi or Renyi may offer better performance for complex scenarios involving multiple thresholds.
Table 11 presents precision scores for various entropy-based thresholding methods across different numbers of thresholds (k = 1, k = 2, and k = 3) for three test images (Image4, Image5, and Image6). Across the board, higher precision values reflect more accurate and reliable segmentation performance.
The proposed method exhibits excellent performance, particularly at multi-threshold levels, achieving perfect precision (1.0000) for all images at k = 2 and k = 3. This indicates that the method is highly effective in minimizing false positives, especially in complex segmentation scenarios. Even at k = 1, its precision remains high—0.9933 for Image4, 0.9607 for Image5, and 0.9704 for Image6. This confirms the method’s reliability in simple segmentation tasks and its potential for consistent performance as complexity increases. Masi, Renyi, and Kapur entropies also perform exceptionally well, with Masi and Kapur achieving near-perfect or perfect precision across all thresholds. Renyi entropy slightly underperforms only at k = 3 for Image6 (0.9780) but remains highly competitive. These methods are consistently effective at reducing false positives and maintaining high true-positive detection across various threshold levels. In contrast, Shannon and Tsallis entropies perform well only at k = 1, but they suffer from severe drops in precision at higher thresholds. For instance, Shannon’s precision on Image5 falls to 0.0238 at k = 3, and Tsallis exhibits similarly poor performance across images beyond k = 1. These results highlight their increased susceptibility to false positive classifications as segmentation complexity grows.
Overall, the proposed method demonstrates outstanding performance in high-precision segmentation, particularly for multi-threshold tasks. It effectively minimizes false positives. Along with Masi, Renyi, and Kapur, it proves suitable for complex segmentation applications. However, given the limitations of precision as a standalone metric, future evaluations should incorporate recall-based measures to ensure a balanced assessment of segmentation quality.
Table 12 presents the recall scores for various entropy-based thresholding methods applied to three test images (Image4, Image5, and Image6) across increasing segmentation complexity (k = 1, 2, and 3). Recall quantifies the proportion of correctly identified object pixels (true positives) out of all actual object pixels (true positives + false negatives). A higher recall indicates fewer missed detections, which is especially critical in applications where missing relevant regions is costly, such as medical imaging or defect detection.
The proposed method achieves perfect recall (1.0000) for all three images at k = 1. It demonstrates an excellent ability to detect all relevant pixels in low-complexity segmentation. However, its performance degrades as segmentation complexity increases. At k = 2, recall drops to 0.6761 (Image4), 0.6515 (Image5), and 0.5426 (Image6) and declines further at k = 3, particularly on Image6 (0.2428). This trend suggests that the proposed method minimizes false negatives in simple segmentation tasks. However, its ability to recall all relevant pixels diminishes in multi-threshold conditions. This decline may be attributed to over-segmentation or the application of stricter pixel classification criteria as the number of thresholds increases. In contrast, Shannon and Tsallis entropies exhibit strong recall at higher thresholds. Both methods reach perfect recall (1.0000) for all three images at k = 3. Even at k = 2, they maintain strong recall scores. This implies that the methods detect nearly all object pixels in complex segmentation scenarios. However, this performance comes despite their previously noted low precision. It indicates a tendency to over-label background pixels as objects. Masi entropy performs well. It balances recall across all thresholds. It achieves scores ranging from 0.8390 to 0.9912. Also, it shows robustness in both complex and straightforward segmentation tasks. This suggests a well-balanced detection strategy that minimizes both false negatives and false positives. Renyi and Kapur entropies, however, yield comparatively lower recall values, particularly at k = 1. For instance, Kapur only achieves 0.1637 on Image6 at k = 1, while Renyi achieves 0.2428. However, both methods improve recall as k increases. They still fall short in overall effectiveness. Neither Renyi nor Kapur matches the performance of Masi or Shannon/Tsallis at higher thresholds. This suggests that their recall improvements are not sufficient to outperform the more robust methods in complex segmentation tasks.
While high recall indicates the effective detection of relevant pixels, it does not penalize false positives. A method with high recall may still suffer from poor segmentation quality if it classifies too many background pixels as objects. Therefore, recall should be interpreted in conjunction with precision or summarized using the F1 score, which provides a harmonic balance of the two metrics.
However, a visual comparison offers a similar output. As mentioned above, based on the literature and practical considerations, the six evaluation metrics do not always perform well across all types of image segmentation tasks. Specifically, in the case of Elephant Segmentation (ES), using accuracy as an evaluation metric is not recommended due to the severe class imbalance between regions of interest (ROIs) and background pixels. In typical ES datasets, ROIs constitute only a small portion of the image, while the background dominates the pixel distribution. Since accuracy includes true negatives—which are abundant in such imbalanced scenarios—it often results in inflated and misleading performance scores. This does not accurately reflect the model’s ability to detect clinically or contextually relevant structures. Therefore, more informative metrics, such as the Dice Similarity Coefficient and Boundary F1 score, are preferred for assessing segmentation quality in this context.

4.3. Visual Evaluation

In this section, the results of the algorithms are visually compared. Due to page length constraints, Image4, Image5, and Image6 are selected as representative examples for analysis. The ground truth for these images is presented in Figure 11.
Based on Figure 12, we analyzed the segmentation performance of various thresholding methods for Image4, comparing the results against the ground truth illustrated in Figure 9. The Shannon and Tsallis entropy models exhibit significant limitations, particularly at k = 1, where the segmentation is noisy, and object boundaries are fragmented and unclear. Increasing the number of thresholds (k = 2, 3) slightly enhances segmentation, but these models still struggle to distinctly isolate the foreground objects (elephants), leading to excessive over-segmentation in the background regions. The Renyi and Kapur entropy models also show similar limitations. At k = 1, these methods produce fragmented regions within areas of interest, resulting in an inconsistent representation of the objects. While the segmentation quality improves at higher thresholds (k = 2, 3), these methods still introduce unclear regions, failing to achieve robust segmentation. On the other hand, the Masi entropy model performs better in segmenting the objects compared to the aforementioned methods. It provides more accurate object boundaries at k = 1 and demonstrates enhanced segmentation quality with higher thresholds (k = 2, 3). However, Masi occasionally introduces some unclear regions in the foreground. The proposed method consistently achieves superior segmentation performance compared to the existing entropy-based techniques. At a single threshold (k = 1), it closely aligns with the ground truth by effectively isolating the elephants and significantly minimizing noise in the background. As the number of thresholds increases (k = 2, 3), the proposed method maintains the integrity of the segmented objects while avoiding the over-segmentation issues observed in other methods. Similar to the Masi entropy model, minor fragmented regions are introduced at higher thresholds; however, the proposed approach remains the most reliable and coherent method for accurately segmenting the objects and preserving background consistency.
Based on Figure 13, the thresholding results for Image5 reveal notable differences in performance across the evaluated methods. Shannon entropy fails to segment the objects effectively at k = 1. While increasing the number of thresholds (k = 2, 3) slightly improves the separation between objects and the background, the segmentation remains suboptimal with fragmented and inconsistent regions. Tsallis entropy demonstrates moderate improvements in object isolation with the initial threshold. However, it fails to deliver robust segmentation, as increasing the threshold level introduces noticeable fragmentation within the objects of interest, compromising their structural integrity. The Renyi, Kapur, and Masi entropy models achieve moderate success in segmenting the objects, with slightly better separation between the foreground and background. Despite this, they suffer from inconsistencies and fail to produce clear object boundaries, resulting in segmented regions that lack precision. In comparison, the proposed method demonstrates superior performance relative to the other approaches. At k = 1, it accurately isolates the objects with well-defined boundaries and minimal noise, closely matching the ground truth. As the number of thresholds increases (k = 2, 3), the proposed method consistently maintains the integrity of the segmented objects while effectively avoiding over-segmentation. However, similar to the Renyi, Kapur, and Masi entropy models, it introduces slightly unclear segmented regions at higher threshold levels. It is evident that the proposed method demonstrates superior performance with a single threshold, effectively segmenting the regions of interest with high accuracy. This approach not only ensures precise object isolation but also achieves this with reduced computational complexity compared to other methods, making it an efficient and reliable solution for segmentation tasks.
Figure 14 shows the thresholding results for Image6 using various entropy-based methods at different threshold levels (k = 1, 2, 3). The Tsallis, Renyi, and Kapur entropy models aim to enhance segmentation by increasing the number of thresholds; however, they do not provide a clear and consistent delineation of the regions of interest (elephants). While the Shannon method performs adequately with a single threshold, it struggles to maintain precision as the number of thresholds increases, resulting in significant noise and fragmented areas. The Masi entropy method demonstrates improved segmentation performance by delivering more accurate regions, though some slight incompleteness remains. As the number of thresholds increases, the accuracy of the segmented results improves, but this comes with greater computational complexity. In contrast, the proposed method consistently outperforms other approaches, especially at k = 1, where it achieves superior segmentation accuracy with clearly defined and coherent regions of interest. Although the method introduces slightly ambiguous regions at higher threshold levels, its performance remains competitive. The proposed method with a single threshold excels in efficiently segmenting regions of interest, offering high accuracy while minimizing computational complexity.
To further clarify the choice between single-threshold and multi-threshold segmentation, we emphasize that the number of optimal thresholds depends on the complexity of the image. Multilevel thresholding is advantageous when an image contains multiple regions of interest with distinct intensity distributions. In complex images, where foreground and background intensities overlap, multilevel thresholding can better distinguish between different objects or regions. This is especially useful for images with heterogeneous thermal distributions, where varying intensity levels correspond to different temperatures or materials. However, single-threshold segmentation is often more effective in high-contrast scenarios. When an image features a clear foreground–background distinction (such as elephants against a relatively uniform thermal background), a single threshold can be sufficient to achieve optimal segmentation. The use of multiple thresholds in these cases may introduce redundant segmentation, increasing computational overhead without significant improvements in accuracy, as illustrated in Figure 15.

5. Conclusions

This paper presents A-Entropy, initiated by Agaian, a novel adaptive unsupervised entropy framework designed for the robust segmentation of challenging thermal images. By addressing the limitations of conventional entropy-based methods, A-Entropy incorporates a three-stage process: adaptive preprocessing, A-Entropy-driven thresholding, and postprocessing refinement. This approach effectively enhances the visibility of regions of interest while mitigating noise and artifacts inherent in thermal imagery.
Evaluated on the BIRDSAI dataset, A-Entropy demonstrates significant improvements over established methods such as Shannon, Tsallis, and Kapur. Notably, it achieves 8–12% higher Sørensen–Dice scores and surpasses 0.99 accuracy with a single threshold (k = 1), highlighting its efficiency and precision. Visual analysis further confirms its superior ability to preserve structural details and delineate accurate boundaries, even in complex scenes, outperforming competitors like Masi and Renyi.
A-Entropy is adaptable to diverse applications, including medical diagnostics, energy efficiency monitoring, and surveillance. While minor fragmentation at higher thresholds warrants further investigation, this study establishes A-Entropy as a powerful tool for precise and efficient thermal image segmentation, striking a balance between accuracy and computational cost.

Author Contributions

Conceptualization, S.S.A.; methodology, T.T.; software, T.T.; formal analysis, A.M.G. and K.P.; resources, T.T.; writing—original draft, T.T.; writing—review and editing, A.M.G., K.P. and S.S.A.; supervision, A.M.G., K.P. and S.S.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding authors.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Shannon, C.E. A Mathematical Theory of Communication. Bell Syst. Tech. J. 1948, 27, 379–423. [Google Scholar] [CrossRef]
  2. Bhuvana, J.; Gautam, C.K.; Bishnoi, A.K. Entropy-Based Analysis of Data Compression Techniques for Information Efficiency. In Proceedings of the 2024 International Conference on Optimization Computing and Wireless Communication (ICOCWC), Debre Tabor, Ethiopia, 29–30 January 2024; pp. 1–6. [Google Scholar] [CrossRef]
  3. Cover, T.M.; Thomas, J.A. Elements of Information Theory; Wiley: Hoboken, NJ, USA, 2006. [Google Scholar]
  4. Ayunts, H.; Grigoryan, A.; Agaian, S. Novel Entropy for Enhanced Thermal Imaging and Uncertainty Quantification. Entropy 2024, 26, 374. [Google Scholar] [CrossRef]
  5. Agaian, S.; Ayunts, H.; Trongtirakul, T.; Hovhannisyan, S. A New Method For Judging Thermal Image Quality with Applications. Signal Process. 2025, 229, 109769. [Google Scholar] [CrossRef]
  6. Benbelkacem, S.; Oulefki, A.; Agaian, S.; Zenati-Henda, N.; Trongtirakul, T.; Aouam, D.; Masmoudi, M.; Zemmouri, M. COVI3D: Automatic COVID-19 CT image-based classification and visualization platform utilizing virtual and augmented reality technologies. Diagnostics 2022, 12, 649. [Google Scholar] [CrossRef] [PubMed]
  7. Benbelkacem, S.; Oulefki, A.; Agaian, S.S.; Trongtirakul, T.; Aouam, D.; Zenati-Henda, N.; Amara, K. Lung infection region quantification, recognition, and virtual reality rendering of CT scan of COVID-19. Proc. SPIE 2021, 11734, 117340I. [Google Scholar] [CrossRef]
  8. Oulefki, A.; Agaian, S.; Trongtirakul, T.; Laouar, A.K. Automatic COVID-19 lung infected region segmentation and measurement using CT-scans images. Pattern Recognit. 2021, 114, 107747. [Google Scholar] [CrossRef] [PubMed]
  9. Laštovička-Medin, G.; Karadžić, D. Investigating the Efficacy of Thermal Imaging as a Tool to Detect Stress in Domestic Animals. In Proceedings of the 2023 12th Mediterranean Conference on Embedded Computing (MECO), Budva, Montenegro, 6–10 June 2023; pp. 1–4. [Google Scholar] [CrossRef]
  10. Li, G.; Lin, Y.; Ouyang, D.; Li, S.; Luo, X.; Qu, X.; Pi, D.; Li, S.E. A RGB-Thermal Image Segmentation Method Based on Parameter Sharing and Attention Fusion for Safe Autonomous Driving. IEEE Trans. Intell. Transp. Syst. 2024, 25, 5122–5137. [Google Scholar] [CrossRef]
  11. Zhu, D.; Zhang, Y.; Gao, Q.; Lu, Y.; Sun, D. Infrared and Visible Image Fusion Using Threshold Segmentation and Weight Optimization. IEEE Sens. J. 2023, 23, 24970–24982. [Google Scholar] [CrossRef]
  12. Sangeetha, R.G.; Srivastava, Y.; Hemanth, C.; Naicker, H.S.; Kumar, A.P.; Vidhyadharan, S. Unmanned Aerial Surveillance and Tracking System in Forest Areas for Poachers and Wildlife. IEEE Access 2024, 12, 187572–187586. [Google Scholar] [CrossRef]
  13. Kabir, R.H.; Lee, K. Wildlife Monitoring Using a Multi-UAV System with Optimal Transport Theory. Appl. Sci. 2021, 11, 4070. [Google Scholar] [CrossRef]
  14. Ramadan, M.N.A.; Ali, M.A.H.; Khoo, S.Y.; Alkhedher, M. AI-Powered IoT and UAV Systems for Real-Time Detection and Prevention of Illegal Logging. Results Eng. 2024, 24, 103277. [Google Scholar] [CrossRef]
  15. Trongtirakul, T.; Agaian, S. Transmission map optimization for single image dehazing. Multimodal Image Exploit. Learn. 2022, 12100, 124–134. [Google Scholar]
  16. Trongtirakul, T.; Agaian, S.S.; Wu, S. Adaptive single low-light image enhancement by fractional stretching in logarithmic domain. IEEE Access 2023, 11, 143936–143947. [Google Scholar] [CrossRef]
  17. Chang, B.; Hwang, B.; Lim, W.; Kim, H.; Kang, W.; Park, Y.S.; Ko, D.W. Enhancing Wildlife Detection Using Thermal Imaging Drones: Designing the Flight Path. Drones 2025, 9, 52. [Google Scholar] [CrossRef]
  18. Ramírez-Ayala, O.; González-Hernández, I.; Salazar, S.; Flores, J.; Lozano, R. Real-Time Person Detection in Wooded Areas Using Thermal Images from an Aerial Perspective. Sensors 2023, 23, 9216. [Google Scholar] [CrossRef]
  19. Hou, F.; Zhang, Y.; Zhou, Y.; Zhang, M.; Lv, B.; Wu, J. Review on Infrared Imaging Technology. Sustainability 2022, 14, 11161. [Google Scholar] [CrossRef]
  20. Kumar, S.; Malik, S.; Sumathi, P. Deep Learning-Based Border Surveillance System Using Thermal Imaging. In Proceedings of the 2022 IEEE 19th India Council International Conference (INDICON), Kochi, India, 24–26 November 2022; pp. 1–6. [Google Scholar] [CrossRef]
  21. Doull, K.E.; Chalmers, C.; Fergus, P.; Longmore, S.; Piel, A.K.; Wich, S.A. An Evaluation of the Factors Affecting ‘Poacher’ Detection with Drones and the Efficacy of Machine-Learning for Detection. Sensors 2021, 21, 4074. [Google Scholar] [CrossRef] [PubMed]
  22. Zhou, Y.; Davies, R.; Wright, J.; Ablett, S.; Maskell, S. Identifying Behaviours Indicative of Illegal Fishing Activities in Automatic Identification System Data. J. Mar. Sci. Eng. 2025, 13, 457. [Google Scholar] [CrossRef]
  23. Dyke, J.; Kleidon, A. The Maximum Entropy Production Principle: Its Theoretical Foundations and Applications to the Earth System. Entropy 2010, 12, 613–630. [Google Scholar] [CrossRef]
  24. Parunak, H.V.D.; Brueckner, S. Entropy and Self-Organization in Multi-Agent Systems. In Proceedings of the Fifth International Conference on Autonomous Agents, Montreal, QC, Canada, 28 May–1 June 2001; pp. 124–130. [Google Scholar] [CrossRef]
  25. Panetta, K.; Gao, C.; Agaian, S. No Reference Color Image Contrast and Quality Measures. IEEE Trans. Consum. Electron. 2013, 59, 643–651. [Google Scholar] [CrossRef]
  26. Agaian, S.S.; Lentz, K.P.; Grigoryan, A.M. A New Measure of Image Enhancement. In Proceedings of the IASTED International Conference on Signal Processing & Communication, Malaga, Spain, 19–22 September 2000. [Google Scholar]
  27. Agaian, S.S.; Silver, B.; Panetta, K.A. Transform Coefficient Histogram-Based Image Enhancement Algorithms Using Contrast Entropy. IEEE Trans. Image Process. 2007, 16, 741–758. [Google Scholar] [CrossRef] [PubMed]
  28. Ayunts, H.; Agaian, S. No-Reference Quality Metrics for Image Decolorization. IEEE Trans. Consum. Electron. 2023, 69, 1177–1185. [Google Scholar] [CrossRef]
  29. Kapur, J.N.; Sahoo, P.K.; Wong, A.K.C. A New Method for Gray-Level Picture Thresholding Using the Entropy of the Histogram. Comput. Vis. Graph. Image Process. 1985, 29, 273–285. [Google Scholar] [CrossRef]
  30. Tsallis, C. Possible Generalization of Boltzmann-Gibbs Statistics. J. Stat. Phys. 1988, 52, 479–487. [Google Scholar] [CrossRef]
  31. Rényi, A. On Measures of Entropy and Information. Berkeley Symp. Math. Statist. Prob. 1961, 4, 547–561. [Google Scholar]
  32. Masi, M. A Step Beyond Tsallis and Rényi Entropies. Phys. Lett. A 2005, 338, 217–224. [Google Scholar] [CrossRef]
  33. Alomani, G.; Kayid, M. Further Properties of Tsallis Entropy and Its Application. Entropy 2023, 25, 199. [Google Scholar] [CrossRef] [PubMed]
  34. Fuentes, J.; Gonçalves, J. Rényi Entropy in Statistical Mechanics. Entropy 2022, 24, 1080. [Google Scholar] [CrossRef] [PubMed]
  35. Sen, H.; Agarwal, A. A Comparative Analysis of Entropy Based Segmentation with Otsu Method for Gray and Color Images. In Proceedings of the International Conference of Electronics, Communication and Aerospace Technology (ICECA), Coimbatore, India, 20–22 April 2017; pp. 113–118. [Google Scholar] [CrossRef]
  36. Wu, B.; Zhu, L.; Cao, J.; Wang, J. A Hybrid Preaching Optimization Algorithm Based on Kapur Entropy for Multilevel Thresholding Color Image Segmentation. Entropy 2021, 23, 1599. [Google Scholar] [CrossRef]
  37. Abdel-Basset, M.; Mohamed, R.; Abouhawwash, M. A New Fusion of Whale Optimizer Algorithm with Kapur’s Entropy for Multi-Threshold Image Segmentation: Analysis and Validations. Artif. Intell. Rev. 2022, 55, 6389–6459. [Google Scholar] [CrossRef]
  38. Kiani, H.; Safabakhsh, R.; Khadangi, E. Fast Recursive Segmentation Algorithm Based on Kapur’s Entropy. In Proceedings of the 2nd International Conference on Computer, Control and Communication, Karachi, Pakistan, 17–18 February 2009; pp. 1–6. [Google Scholar] [CrossRef]
  39. Wenqi, J.; Xiaoguang, H. Kapur’s Entropy for Multilevel Thresholding Image Segmentation Based on Moth-Flame Optimization. Math. Biosci. Eng. 2021, 18, 7110–7142. [Google Scholar] [CrossRef]
  40. Bondi, E.; Jain, R.; Aggrawal, P.; Anand, S.; Hannaford, R.; Kapoor, A.; Piavis, J.; Shah, S.; Joppa, L.; Dilkina, B.; et al. BIRDSAI: A Dataset for Detection and Tracking in Aerial Thermal Infrared Videos. In Proceedings of the IEEE Winter Conference on Applications of Computer Vision (WACV), Snowmass Village, CO, USA, 1–5 March 2020; pp. 1736–1745. [Google Scholar] [CrossRef]
  41. Rodríguez, R.; Garcés, Y.; Torres, E.; Sossa, H.; Tovar, R. A Vision From a Physical Point of View and the Information Theory on the Image Segmentation. J. Intell. Fuzzy Syst. 2019, 37, 2835–2845. [Google Scholar] [CrossRef]
  42. Zhang, K.; He, M.; Dong, L.; Ou, C. The Application of Tsallis Entropy Based Self-Adaptive Algorithm for Multi-Threshold Image Segmentation. Entropy 2024, 26, 777. [Google Scholar] [CrossRef] [PubMed]
  43. Nomura, R.; Yagi, H. Optimum Achievable Rates in Two Random Number Generation Problems with f-Divergences Using Smooth Rényi Entropy. Entropy 2024, 26, 766. [Google Scholar] [CrossRef]
  44. Jia, H.; Peng, X.; Song, W.; Oliva, D.; Lang, C.; Li, Y. Masi Entropy for Satellite Color Image Segmentation Using Tournament-Based Lévy Multiverse Optimization Algorithm. Remote Sens. 2019, 11, 942. [Google Scholar] [CrossRef]
  45. Wang, J.; Tan, Y.; Bo, X.; Li, G. Image Segmentation Method With Improved GA Optimization of Two-Dimensional Maximum Entropy. IEEE Access 2024, 12, 183279–183292. [Google Scholar] [CrossRef]
  46. Trongtirakul, T.; Agaian, S. Unsupervised and optimized thermal image quality enhancement and visual surveillance applications. Signal Process. Image Commun. 2022, 105, 116714. [Google Scholar] [CrossRef]
  47. Liu, Y.; Yan, H.; Liu, R.; Gao, Q.; Wu, Z.; Chen, X.; Meng, Q. Infrared Image Segmentation Method Based on Tsallis Entropy. In Proceedings of the 2024 3rd International Conference on Artificial Intelligence and Computer Information Technology (AICIT), Yichang, China, 20–22 September 2024; pp. 1–4. [Google Scholar] [CrossRef]
  48. Salas-Robles, J.E.; Biot-Monterde, V.; Antonino-Daviu, J.A. Current and Stray Flux Combined Analysis for Sparking Detection in DC Motors/Generators Using Shannon Entropy. Entropy 2024, 26, 744. [Google Scholar] [CrossRef]
  49. Ulhaq, A.; Adams, P.; Cox, T.E.; Khan, A.; Low, T.; Paul, M. Automated Detection of Animals in Low-Resolution Airborne Thermal Imagery. Remote Sens. 2021, 13, 3276. [Google Scholar] [CrossRef]
  50. Müller, D.; Soto-Rey, I.; Kramer, F. Towards a guideline for evaluation metrics in medical image segmentation. BMC Res. Notes 2022, 15, 210. [Google Scholar] [CrossRef]
Figure 1. Comparison of pixel shuffling in grayscale image with entropy and standard deviation values: (a) original image; (b) image with pixels shuffled row-wise; (c) image with pixels shuffled column-wise; (d) fully shuffled image (rows and columns); (e) image histogram.
Figure 1. Comparison of pixel shuffling in grayscale image with entropy and standard deviation values: (a) original image; (b) image with pixels shuffled row-wise; (c) image with pixels shuffled column-wise; (d) fully shuffled image (rows and columns); (e) image histogram.
Entropy 27 00526 g001
Figure 2. Comparison of thermal image enhancement with different Degrees of Enhancement (DoEs): (a) original image; (b) 25% DoE; (c) 50% DoE; (d) 75% DoE; (e) 100% DoE.
Figure 2. Comparison of thermal image enhancement with different Degrees of Enhancement (DoEs): (a) original image; (b) 25% DoE; (c) 50% DoE; (d) 75% DoE; (e) 100% DoE.
Entropy 27 00526 g002
Figure 3. Monotonic increase in kernel-based metric values with higher Degrees of Enhancement (DoEs) depicted in Figure 2: (a) original image; (b) 25% DoE; (c) 50% DoE; (d) 75% DoE; (e) 100% DoE.
Figure 3. Monotonic increase in kernel-based metric values with higher Degrees of Enhancement (DoEs) depicted in Figure 2: (a) original image; (b) 25% DoE; (c) 50% DoE; (d) 75% DoE; (e) 100% DoE.
Entropy 27 00526 g003
Figure 4. Transformation functions with different γ φ .
Figure 4. Transformation functions with different γ φ .
Entropy 27 00526 g004
Figure 5. Comparison of thermal image with different γ : (a) input image; (b) γ = 1.00 ; (c) γ = 0.50 ; (d) γ = 0.25 ; (e) γ = 0.10 ; (f) γ = 0.01 ; (g) γ = 0.001 ; (h) γ = e μ max I / 2 max I / 2 .
Figure 5. Comparison of thermal image with different γ : (a) input image; (b) γ = 1.00 ; (c) γ = 0.50 ; (d) γ = 0.25 ; (e) γ = 0.10 ; (f) γ = 0.01 ; (g) γ = 0.001 ; (h) γ = e μ max I / 2 max I / 2 .
Entropy 27 00526 g005
Figure 6. Comparative analysis of segmentation accuracy between the proposed model and existing entropy-based functions: (a) input image; (b) Kapur segmentation; (c) Masi segmentation; (d) entropy functions; (e) Renyi segmentation; (f) proposed segmentation.
Figure 6. Comparative analysis of segmentation accuracy between the proposed model and existing entropy-based functions: (a) input image; (b) Kapur segmentation; (c) Masi segmentation; (d) entropy functions; (e) Renyi segmentation; (f) proposed segmentation.
Entropy 27 00526 g006
Figure 7. Comparative analysis of enhancement performance with different (a) input images; (b) enhanced images ρ = μ / 10 γ ; (c) histogram of (b); (d) enhanced images ρ = 2 ; (e) histogram of (d).
Figure 7. Comparative analysis of enhancement performance with different (a) input images; (b) enhanced images ρ = μ / 10 γ ; (c) histogram of (b); (d) enhanced images ρ = 2 ; (e) histogram of (d).
Entropy 27 00526 g007
Figure 8. Test images and their histograms for: (a) Image4; (b) Image5; (c) Image6.
Figure 8. Test images and their histograms for: (a) Image4; (b) Image5; (c) Image6.
Entropy 27 00526 g008
Figure 9. Sample images from the real and synthetic datasets. From left to right: small, medium, and large objects. The two images in (a) are real images of animals and humans, respectively, while (b) presents synthetic images of animals and humans. The synthetic data comprise a mixture of summer and winter scenes, with winter scenes featuring dark trees against the ground.
Figure 9. Sample images from the real and synthetic datasets. From left to right: small, medium, and large objects. The two images in (a) are real images of animals and humans, respectively, while (b) presents synthetic images of animals and humans. The synthetic data comprise a mixture of summer and winter scenes, with winter scenes featuring dark trees against the ground.
Entropy 27 00526 g009
Figure 10. Sample images from the real-world kangaroo (Macropodidae) dataset.
Figure 10. Sample images from the real-world kangaroo (Macropodidae) dataset.
Entropy 27 00526 g010
Figure 11. Ground truth: (a) Image4; (b) Image5; (c) Image6.
Figure 11. Ground truth: (a) Image4; (b) Image5; (c) Image6.
Entropy 27 00526 g011
Figure 12. Thresholding results for Image4: (a) Shannon [48]; (b) Tsallis [42]; (c) Renyi [43]; (d) Kapur [4]; (e) Masi [44]; (f) proposed method (k = 1, t = 45; k = 2, t = 94, 95; and k = 3, t = 123, 124, 125).
Figure 12. Thresholding results for Image4: (a) Shannon [48]; (b) Tsallis [42]; (c) Renyi [43]; (d) Kapur [4]; (e) Masi [44]; (f) proposed method (k = 1, t = 45; k = 2, t = 94, 95; and k = 3, t = 123, 124, 125).
Entropy 27 00526 g012aEntropy 27 00526 g012b
Figure 13. Thresholding results for Image5: (a) Shannon [48]; (b) Tsallis [42]; (c) Renyi [43]; (d) Kapur [4]; (e) Masi [44]; (f) proposed method (k = 1, t = 50; k = 2, t = 98, 99; and k = 3, t = 128, 129, 130).
Figure 13. Thresholding results for Image5: (a) Shannon [48]; (b) Tsallis [42]; (c) Renyi [43]; (d) Kapur [4]; (e) Masi [44]; (f) proposed method (k = 1, t = 50; k = 2, t = 98, 99; and k = 3, t = 128, 129, 130).
Entropy 27 00526 g013aEntropy 27 00526 g013b
Figure 14. Thresholding results for Image6: (a) Shannon [48]; (b) Tsallis [42]; (c) Renyi [43]; (d) Kapur [4]; (e) Masi [44]; (f) proposed method (k = 1, t = 47; k = 2, t = 97, 98; and k = 3, t = 127, 128, 129).
Figure 14. Thresholding results for Image6: (a) Shannon [48]; (b) Tsallis [42]; (c) Renyi [43]; (d) Kapur [4]; (e) Masi [44]; (f) proposed method (k = 1, t = 47; k = 2, t = 97, 98; and k = 3, t = 127, 128, 129).
Entropy 27 00526 g014
Figure 15. Comparison of a thermal image: (a) original, (b) single thresholding, and (c) multilevel thresholding.
Figure 15. Comparison of a thermal image: (a) original, (b) single thresholding, and (c) multilevel thresholding.
Entropy 27 00526 g015
Table 1. Comparison of meta-heuristic optimization techniques for threshold selection.
Table 1. Comparison of meta-heuristic optimization techniques for threshold selection.
AspectGenetic Algorithm (GA) [45]Particle Swarm Optimization (PSO) [46]
Common Goals
  • Find optimal threshold values.
  • Reduce computational complexity.
  • Avoid local optima.
  • Handle multi-dimensional threshold problems.
  • Identify optimal threshold values.
  • Minimize computational complexity.
  • Prevent local optima.
  • Address multi-dimensional threshold issues.
Inspiration
  • Natural selection and genetic evolution.
  • Social behavior of bird flocking or fish schooling.
Advantages
  • Excellent at exploring large search spaces.
  • Handles non-linear, non-differentiable problems.
  • Maintains population diversity.
  • Easily parallelizable.
  • Effective for multi-threshold problems.
  • Simpler implementation.
  • Fewer parameters to tune.
  • Faster convergence for many problems.
  • Efficiently handles continuous optimization.
  • Less sensitive to initialization.
Disadvantages
  • Requires careful parameter tuning.
  • Convergence can be slow.
  • Computationally intensive.
  • No guarantee of global optimum.
  • Performance depends on fitness function.
  • Prone to premature convergence.
  • Less effective at full space exploration.
  • Performance degrades with dimensionality.
  • More easily trapped in local optima.
  • Still requires parameter selection.
Key Parameters
  • Population size, mutation rate, crossover rate, selection method
  • Inertia weight, cognitive/social acceleration coefficients, swarm size
Application to Thresholding
  • Well suited for complex multilevel thresholding.
  • Efficient for continuous threshold optimization.
Table 2. Entropy-based metric values for images described in Figure 1.
Table 2. Entropy-based metric values for images described in Figure 1.
Image σ Shannon
[48]
Tsallis
[42]
Renyi [43]
Original image28.77546.83630.98954.5582
Image with pixels shuffled row-wise28.77546.83630.98954.5582
Image with pixels shuffled column-wise28.77546.83630.98954.5582
Fully shuffled image28.77546.83630.98954.5582
Table 3. Block-based metric values for images depicted in Figure 1.
Table 3. Block-based metric values for images depicted in Figure 1.
ImageEMEEMEEAMEAMEEProposed
Original image14.50070.785811.13570.43240.7076
Image with pixels shuffled row-wise31.532220.573913.72180.67650.8706
Image with pixels shuffled column-wise31.154820.894513.72030.67630.8707
Fully shuffled image14.50070.785811.13570.43240.7076
Table 4. Kernel-based metric values for images depicted in Figure 2.
Table 4. Kernel-based metric values for images depicted in Figure 2.
ImageDoEEMEEMEEAMEAMEEProposed
Entropy 27 00526 i001
Image1
0%15.57170.983312.22360.52410.3245
25%16.02101.058212.66840.56660.3268
50%16.38471.129712.90940.59060.3292
75%16.73651.220513.05330.60550.3312
100%17.07141.325413.14710.61560.3332
Entropy 27 00526 i002
Image2
0%15.31410.912512.28810.53240.3271
25%15.68610.968212.64900.56670.3288
50%16.00951.025312.85220.58670.3304
75%16.32861.094812.96930.59890.3317
100%16.66701.188113.03660.60640.3327
Entropy 27 00526 i003
Image3
0%15.00020.875111.68940.47580.3084
25%15.41340.940512.31790.53250.3114
50%15.75951.004012.65920.56480.3143
75%16.08161.077012.86330.58520.3172
100%16.38641.161313.00390.59960.3200
Table 5. Metric descriptions and formulations.
Table 5. Metric descriptions and formulations.
MetricDescriptionMathematical Formulations
AccuracyMeasures the overall proportion of correctly classified pixels, including foreground and background. A general measure of classification performance. A c c u r a c y = T P + T N T P + T N + F P + F N
Boundary F1 (BF) ScoreEvaluates how well predicted boundaries match ground-truth edges, using F1 score principles at the object boundary level. This is critical for applications requiring precise contour alignment. B F = 2 P r c i s i o n R e c a l l P r e c i s i o n + R e c a l l
Sørensen–Dice Similarity Coefficient (DSC)Measures the overlap between predicted and ground-truth regions, emphasizing correct segmentation of object areas. Also known as the Dice coefficient or F1 score. D S C = 2 T P 2 T P + F P + F N
Jaccard Similarity (IoU)Assesses the ratio between the intersection and union of the predicted and ground-truth masks. This is useful for understanding overall spatial accuracy. I o U = T P T P + F P + F N
PrecisionIndicates the proportion of correctly predicted positives among all positive predictions, representing prediction reliability. P r e c i s i o n = T P T P + F P
Recall (Sensitivity)Measures the proportion of correctly predicted positives among all actual positives, indicating detection completeness. R e c a l l = T P T P + F N
TP (true positive) represents the number of pixels that have been correctly classified or segmented, FP (false positive) represents the number of background pixels that have been incorrectly classified as foreground (often due to misalignment), FN (false negative) denotes the number of foreground pixels that have been misclassified as background, and TN (true negative) indicates the number of background pixels that have been correctly identified as background.
Table 6. Advantages and disadvantages of metrics.
Table 6. Advantages and disadvantages of metrics.
MetricAdvantagesDisadvantages
Accuracy
  • Simple and intuitive.
  • Effective for balanced datasets.
  • Misleading for imbalanced data.
  • Does not reflect boundary precision or spatial overlap.
  • May mask poor performance for minority classes.
Boundary F1 (BF) Score
  • Sensitive to boundary alignment.
  • Critical for contour-based tasks.
  • Computationally intensive.
  • Less informative for overall region overlap.
Sørensen–Dice Similarity Coefficient (DSC)
  • Balances false positives and false negatives.
  • Effective for region overlap.
  • Commonly used in medical segmentation.
  • Less sensitive to boundary errors.
  • Can be inflated in images with large background areas.
Jaccard Similarity (IoU)
  • Directly measures region overlap.
  • Effective for sparse or imbalanced data.
  • Useful for fair comparison of models.
  • More sensitive to misclassifications than DSC.
  • Less intuitive interpretation.
Precision
  • Highlights false positives.
  • Important in false-alarm-sensitive tasks.
  • Ignores false negatives.
  • May overestimate performance if recall is low.
Recall (Sensitivity)
  • Highlights missed detections.
  • Essential in completeness-focused tasks.
  • Ignores false positives.
  • May encourage over-segmentation.
Table 7. Accuracy.
Table 7. Accuracy.
Entropy MethodImageNumber of Thresholds
k = 1k = 2k = 3
Shannon [48]Image40.98520.82470.8751
Image50.18610.99790.0297
Image60.99640.09520.0952
Tsallis [42]Image40.98020.04820.0482
Image50.98870.02970.0297
Image60.96010.07560.0756
Renyi [43]Image40.97340.98710.9938
Image50.98770.99370.9971
Image60.94580.97700.9899
Kapur [4]Image40.97030.96630.9880
Image50.98570.99550.9955
Image60.94010.98410.9841
Masi [44]Image40.99240.99510.9956
Image50.99450.99640.9974
Image60.98410.99570.9978
ProposedImage40.99970.98470.9751
Image50.99900.99180.9877
Image60.99780.96720.9458
Table 8. BF (Boundary F1) score.
Table 8. BF (Boundary F1) score.
Entropy MethodImageNumber of Thresholds
k = 1k = 2k = 3
Shannon [48]Image40.92330.36760.4245
Image50.08190.98620.0673
Image60.92630.15130.1513
Tsallis [42]Image40.86320.00000.0000
Image50.92270.06730.0673
Image60.88180.20280.2028
Renyi [43]Image40.76010.93800.9788
Image50.90610.96380.9986
Image60.84470.95100.9892
Kapur [4]Image40.71090.63890.9423
Image50.88610.98770.9877
Image60.80930.98010.9801
Masi [44]Image40.96980.98930.9944
Image50.97330.99650.9964
Image60.98010.99170.9541
ProposedImage40.98210.91790.7939
Image50.89640.94440.9061
Image60.94120.91510.8447
Table 9. Sørensen–Dice Similarity.
Table 9. Sørensen–Dice Similarity.
Entropy MethodImageNumber of Thresholds
k = 1k = 2k = 3
Shannon [48]Image40.81480.35080.4314
Image50.05500.95320.0465
Image60.97550.13670.1367
Tsallis [42]Image40.73510.09050.0905
Image50.68730.04650.0465
Image60.61360.13420.1342
Renyi [43]Image40.60930.84250.9298
Image50.64970.84510.9353
Image60.39070.80880.9239
Kapur [4]Image40.54420.44780.8551
Image50.56550.89500.8950
Image60.28140.87490.8749
Masi [44]Image40.91250.94500.9517
Image50.86730.91720.9408
Image60.87490.96900.9846
ProposedImage40.99660.80670.6440
Image50.97990.78900.6497
Image60.98500.70350.3907
Table 10. Jaccard Similarity.
Table 10. Jaccard Similarity.
Entropy MethodImageNumber of Thresholds
k = 1k = 2k = 3
Shannon [48]Image40.68740.21270.2750
Image50.02830.91060.0238
Image60.95230.07330.0733
Tsallis [42]Image40.52180.04740.0474
Image50.52350.02380.0238
Image60.44260.07190.0719
Renyi [43]Image40.43810.72780.8689
Image50.48110.73180.8785
Image60.24280.67890.8586
Kapur [4]Image40.37390.28850.7469
Image50.39430.80990.8099
Image60.16370.77760.7776
Masi [44]Image40.83900.89570.9079
Image50.76560.84700.8882
Image60.77760.93980.9696
ProposedImage40.99330.67610.4749
Image50.96070.65150.4811
Image60.97040.54260.2428
Table 11. Precision.
Table 11. Precision.
Entropy MethodImageNumber of Thresholds
k = 1k = 2k = 3
Shannon [48]Image41.00000.21270.2750
Image50.02830.99690.0238
Image60.95230.07330.0733
Tsallis [42]Image41.00000.04740.0474
Image51.00000.02380.0238
Image61.00000.07190.0719
Renyi [43]Image41.00001.00001.0000
Image51.00001.00000.9998
Image61.00001.00001.0000
Kapur [4]Image41.00001.00001.0000
Image51.00001.00001.0000
Image61.00001.00001.0000
Masi [44]Image41.00001.00001.0000
Image51.00001.00000.9992
Image61.00000.99850.9780
ProposedImage40.99331.00001.0000
Image50.96071.00001.0000
Image60.97041.00001.0000
Table 12. Recall.
Table 12. Recall.
Entropy MethodImageNumber of Thresholds
k = 1k = 2k = 3
Shannon [48]Image40.68741.00001.0000
Image51.00000.91321.0000
Image61.00001.00001.0000
Tsallis [42]Image40.58121.00001.0000
Image50.52351.00001.0000
Image60.44261.00001.0000
Renyi [43]Image40.43810.72780.8689
Image50.48110.73180.8787
Image60.24280.67890.8586
Kapur [4]Image40.37390.28850.7469
Image50.39430.80990.8099
Image60.16370.77760.7776
Masi [44]Image40.83900.89570.9079
Image50.76560.84700.8889
Image60.77760.94120.9912
ProposedImage41.00000.67610.4749
Image51.00000.65150.4811
Image61.00000.54260.2428
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Trongtirakul, T.; Panetta, K.; Grigoryan, A.M.; Agaian, S.S. A Novel Entropy-Based Approach for Thermal Image Segmentation Using Multilevel Thresholding. Entropy 2025, 27, 526. https://doi.org/10.3390/e27050526

AMA Style

Trongtirakul T, Panetta K, Grigoryan AM, Agaian SS. A Novel Entropy-Based Approach for Thermal Image Segmentation Using Multilevel Thresholding. Entropy. 2025; 27(5):526. https://doi.org/10.3390/e27050526

Chicago/Turabian Style

Trongtirakul, Thaweesak, Karen Panetta, Artyom M. Grigoryan, and Sos S. Agaian. 2025. "A Novel Entropy-Based Approach for Thermal Image Segmentation Using Multilevel Thresholding" Entropy 27, no. 5: 526. https://doi.org/10.3390/e27050526

APA Style

Trongtirakul, T., Panetta, K., Grigoryan, A. M., & Agaian, S. S. (2025). A Novel Entropy-Based Approach for Thermal Image Segmentation Using Multilevel Thresholding. Entropy, 27(5), 526. https://doi.org/10.3390/e27050526

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop