1. Introduction
Infrared thermal imagers utilize the principles of infrared technology to measure the infrared radiation energy emitted from the surface of an object and convert the temperature distribution of the object’s surface into a vivid and intuitive thermal image. Due to their rapid response time, wide measurement range, non-contact measurement capability, and visually intuitive results, infrared thermal imagers are extensively used in military, medical, industrial, and other fields [
1,
2]. Infrared thermal imagers are not only a key factor in modern military confrontations but have also gained increasing attention in civilian applications. They are now employed in the diagnosis of cancer, the monitoring of diabetes [
3,
4], and the surveillance and thermal fault analysis of equipment in power fields [
5].
With the widespread application of infrared thermal imagers, higher demands have been placed on these devices. The minimum resolvable temperature difference (MRTD) is a critical standard for evaluating the performance of infrared thermal imaging systems [
6]. Therefore, enhancing the detection accuracy of MRTD testers is a key focus in improving the precision of infrared thermal imagers [
7]. Currently, the general method for measuring MRTD involves the following steps: a four-bar target with a high aspect ratio of 7:1 is placed against a uniform background, and the temperature difference between the target and the background is either increased or decreased. The temperature difference at which the human eye can just resolve the image of the four-bar target displayed on the system’s monitor corresponds to the MRTD value at that specific spatial frequency. To eliminate test errors caused by zero drift, the average of the positive and negative temperature differences is typically taken as the final test result. Traditional four-bar targets are depicted in
Figure 1 [
8].
In recent years, researchers have proposed improvements to the MRTD testing method. These improvements shift from traditional human visual observation to the use of CCD cameras [
9] by measuring the modulation transfer function (MTF), calculating MRTD using the noise equivalent temperature difference (NETD) [
10], and employing neural networks [
11]. However, compared to traditional methods, objective measurement techniques struggle to achieve higher accuracy. Although these methods reduce labor costs, they are not suitable for high-precision measurements. In related research, the temperature of the four-bar target is easily influenced by external environmental conditions and the temperature of the blackbody, leading to uneven thermal distribution across the target. This unevenness can prevent the achievement of consistent test conditions across the entire target surface, resulting in imprecise test outcomes and failing to accurately reflect the actual performance of the thermal imaging system. This study proposes an improvement to the four-bar target by employing intelligent optimization algorithms to control the temperature at various points on the target, ensuring uniform temperature distribution across the entire target.
In recent studies, researchers have conducted in-depth investigations into various intelligent optimization algorithms for control systems. Jintao Meng et al. [
12] proposed a temperature control system for a vacuum annealing furnace based on a Genetic Algorithm-optimized fuzzy PID (GA-Fuzzy-PID). Compared to traditional control methods, this system shows significant advantages in temperature accuracy, rise time, and overshoot control. Jiaxiao [
13] Chen et al. also proposed a control method combining genetic algorithms with fuzzy PID. However, the high computational complexity of genetic algorithms might lead to insufficient real-time performance. Hao Tang et al. [
14] addressed the nonlinearity and hysteresis issues in lychee preservation equipment by introducing a particle swarm optimization-enhanced fuzzy PID (PSO-Fuzzy PID) control method. The results indicated that the PSO-Fuzzy PID scheme significantly reduced disturbance adjustment time and eliminated overshoot, exhibiting superior control performance, although it might fall into local optima during computation, leading to inaccurate parameter adjustments. Mingsan Ouyang et al. [
15] introduced an improved sparrow search algorithm (ISSA) to optimize PID parameters in the temperature control process of a continuous stirred tank reactor (CSTR). Experimental results showed improved transient and steady-state performance of the reactor temperature control with good precision and robustness, although the convergence was poor after enhancing the capability to escape local minima. Ahmad Nor Kasruddin [
16] Nasir et al. proposed a novel hybrid strategy combining the spiral dynamics algorithm (SDA) with the bacterial foraging algorithm (BFA) to design a fuzzy controller for flexible manipulators, but its slow convergence rate made it unsuitable for real-time systems. Aiguo Jin et al. [
17] designed a temperature control system for infant radiant warmers using a Kalman filter-based fuzzy PID (KFPID) algorithm. Experimental results demonstrated shorter adjustment times, nearly zero overshoot, and smaller steady-state errors compared to control systems without this algorithm, particularly showing effectiveness in noise suppression. Amit Kumar et al. [
18] introduced a novel hybrid controller that combines the fuzzy PID with PID optimized by the whale optimization algorithm (WOA), showing excellent performance in frequency regulation in hybrid power systems, though the method has a slow convergence rate and is sensitive to initial settings. Zhe Sun et al. [
19] proposed a fuzzy logic power system stabilizer (FLPSS) based on the grey wolf optimization algorithm (GWO). Compared to traditional stabilizers and optimization algorithms, it provided faster system response time and higher damping of oscillations, although its robustness was less satisfactory. Alok Kumar Mishra et al. [
20] proposed a novel estimation algorithm—the robust extended Kalman filter—to estimate the fundamental phase component of the reference current and employed a novel adaptive fuzzy PID controller to generate the maximum value of the reference current. All controller parameters were optimized using an improved football game optimization (IFGO) technique. Additionally, the sliding mode control (SMC) technique was used to generate switching pulses for the voltage source converter (VSC). Haiyu Zhang et al. [
21] introduced a gas distribution system based on a fuzzy PID controller, where the system’s mathematical model was built using the step response method, and the gas distribution control process was optimized. However, this method is subject to the influence of human factors on parameter adjustments.
To address these challenges, this paper improves the four-bar target by installing thermoelectric coolers (TECs) and thin-film platinum resistors on its surface to lower the central temperature and elevate the peripheral temperature, thereby maintaining consistent temperature across the entire plane. A high-temperature uniformity target provides an accurate and consistent thermal field, which allows for more precise measurement of the MRTD value of infrared thermal imagers. In controlling the temperature of the four-bar target, this paper introduces the dung beetle algorithm for online optimization of quantization and proportionality factors, seeking optimal solutions for each parameter. This significantly enhances the accuracy and reliability of MRTD detection, thereby positively impacting the performance evaluation of thermal imaging products. The dung beetle algorithm is a heuristic optimization algorithm based on biomimetic principles and inspired by the behavior of dung beetles when searching for food and shelter. Compared to other algorithms, the dung beetle algorithm first utilizes swarm intelligence to search the entire solution space, which helps in discovering the global optimum and improving the overall performance of the control system. Additionally, the dung beetle algorithm has a certain degree of adaptability, allowing it to dynamically adjust its search strategy based on changes in the search space. This enables the algorithm to cope with changes and uncertainties during the control system operation, thereby enhancing the system’s stability and robustness. Lastly, the dung beetle algorithm usually features high convergence speed and search efficiency, enabling it to find better solutions within a relatively short time. This is advantageous in real-time control systems for rapid parameter adjustment to accommodate dynamic changes in the system.
The four-rod target in a conventional MRTD detector is subject to external influences, which can lead to the problem of low temperatures around the perimeter and high temperatures in the center. In this study, for the first time, a highly uniform temperature control strategy is proposed for the temperature control of the four-rod target in MRTD detection instruments to reduce the influence of the outside world on its temperature uniformity. Compared with the existing technology, this paper adopts an advanced intelligent algorithm dung beetle optimization algorithm to optimize the fuzzy PID parameters, which significantly improves the performance of MRTD detection, and the algorithm provides a reference value for all temperature control systems with high precision requirements. It fills the gap in existing research and provides a new research direction and important theoretical basis for the development of future temperature control technology.
2. Principles and Methods
2.1. Improving the Four-Bar Target
This research is focused on the temperature control of the four-bar target to minimize interference from the external environment. The traditional four-bar target has a problem with higher temperatures at the center and lower temperatures around the edges. To improve this situation, TECs (thermoelectric coolers) have been placed at both the center and the small square positions around the perimeter of the four-bar target to achieve temperature control, as shown in
Figure 2. By coordinating the operation of multiple TECs, the objective was to lower the temperature at the center of the four-bar target and raise the temperature around the edges, thereby achieving an overall temperature balance. Additionally, thin-film platinum resistors were used to measure the temperature at various points to ensure consistency across all points and to detect the maximum temperature difference across the entire plane. The measured temperature values were fed back to a PID controller, which formed a closed-loop system, to improve the temperature uniformity of the four-bar target, thereby enhancing the detection accuracy of the MRTD tester.
2.2. Establishment of Transfer Functions
A TEC (thermoelectric cooler) [
22] is a type of thermoelectric device based on the Peltier effect, where direct current passing through a thermocouple made up of two semiconductor materials can cause one side of the thermocouple to absorb heat while the other side releases heat. Although a TEC is an electric current transducer, its operating current and voltage are related to its internal resistance. The operating voltage of a TEC can also reflect its operating state, and since voltage sources are more common, the analysis of the TEC system is based on the input voltage. The heating system is a first-order inertia system with delay. By first transforming the heat balance equation of a first-order inertia system using Laplace transforms, the relationship between temperature change and voltage change in the system can be obtained:
where Δ
T(s) is the temperature change, Δ
U(
s) is the voltage change,
K is the system gain,
T is the time constant, and
s is the complex variable, which in this case is the differential operator. The model of the controlled object in the temperature control system can be represented by a first-order delay function, and after calculation, the transfer function of this article is as follows [
23]:
where
K is the system gain,
T is the time constant, and
τ is the time delay.
2.3. Fuzzy PID Control
Combining fuzzy control theory with classical PID control forms a fuzzy PID controller, where the fuzzy algorithm can play an auxiliary optimization role. Based on a conventional PID controller, the deviation
e and the rate of change of the deviation
ec are used as input variables to the fuzzy controller, and the classical PID’s three incremental correction values
Kp,
Ki,
Kd serve as the output of the fuzzy controller, resulting in a two-input and three-output structure [
23,
24]. The principle block diagram of a fuzzy PID control system is shown in
Figure 3.
According to the characteristics of the temperature control system in this system, all variables are described using trimf (triangular membership functions), as shown in
Figure 4 and
Figure 5:
In this paper, the inputs are the temperature deviation
e and the rate of change of temperature deviation
ec, which are subject to fuzzification. The fuzzy subsets are defined as NB, NM, NS, ZO, PS, PM, and PB. Furthermore, a fuzzy rule table is deduced as shown in
Table 1,
Table 2 and
Table 3:
The de-blurring is performed using a weighted averaging method, with the results automatically generated by the fuzzy PID controller, as shown in
Figure 6. The values of
e and
ec can be manually input to verify the magnitude changes of ∆
Kp, ∆
Ki, and ∆
Kd.
According to fuzzy rules, the PID controller dynamically adjusts the proportional (P), integral (I), and derivative (D) gains. When the error e is large, Kp is set to a higher value, Ki is set relatively smaller, and Kd is moderately smaller. When the errors e and ec are moderate, Kp is set to a lower value. The values of Ki and Kd need to be moderate. In cases of larger errors, for better robustness, Kp is set to a smaller value, Ki is increased to prevent oscillations, and Kd is set to a moderate level.
2.4. Dung Beetle Optimize
The dung beetle optimization algorithm (DBO) [
25,
26,
27] is a novel swarm intelligence optimization algorithm proposed on 27 November 2022 by Professor Bo Shen’s team at Donghua University. By observing and studying the habits of dung beetles, they discovered the irreplaceable role of dung balls in the dung beetle’s survival. Dung balls not only serve as the breeding ground for larvae but also provide the necessary food for their sustenance. Mathematical modeling of behaviors such as rolling, dancing, foraging, stealing, and reproduction led to the development of the dung beetle optimization algorithm, which is characterized by its strong optimization ability and fast convergence rate.
The dung beetle optimization algorithm mainly includes four processes: rolling, breeding, foraging, and stealing. The dung beetle population is divided into four parts: the ball-rolling dung beetles, the breeding balls, the young dung beetles, and the thieving dung beetles [
28,
29]. Ball-rolling dung beetles determine their movement direction by the sun, moon, or polarized light, choosing safer locations to forage. Breeding balls are born in the safe locations selected by the ball-rolling dung beetles. Young dung beetles, which eventually grow into adults, search for food in the optimal foraging areas. Thieving dung beetles forage or steal dung balls based on known optimal foraging areas and the locations of other companions. The optimization process of the DBO algorithm for fuzzy PID control mainly has six steps [
30]: (1) initialize the dung beetle population and DBO algorithm parameters; (2) calculate the fitness values of all dung beetles’ positions based on the objective function; (3) update the positions of all dung beetles; (4) check if any updated dung beetles have gone out of bounds; (5) update the current optimal solution and its fitness value; and (6) repeat the above steps until
t reaches the maximum number of iterations, after which the global optimum value and the optimal solution are output.
Here are the specific update processes for the four different dung beetle positions:
2.4.1. Roll-Ball Dung Beetle
The roll-ball dung beetle navigates with the sun to ensure the dung ball rolls in a straight path. Natural factors like light intensity and wind can influence the roll-ball dung beetle’s trajectory [
31]. The position update for the roll-ball dung beetle can be expressed as follows:
where
t represents the current iteration number;
xi(
t) represents the position information of the
i-th dung beetle at the
t-th iteration;
α is a natural coefficient that indicates whether to deviate from the original direction, assigned −1 or 1 based on probability;
k ∈ (0, 0.2) represents the deviation coefficient;
b ∈ (0, 1) represents a constant, with k and b set to 0.1 and 0.3, respectively;
Xw denotes the global worst position; and Δ
x is used to simulate changes in light intensity. The movement direction of the dung beetle is shown in
Figure 7.
The updated formula for the dancing position of a dung beetle on a dung ball when it encounters an obstacle and needs to choose a new route to continue moving forward can be represented as follows:
where
θ ∈ [0, π] represents the deviation angle, and when
θ is equal to 0, π/2, or π, the position of the dung beetle will not be updated.
2.4.2. Brood Ball
The brood ball utilizes a boundary selection strategy to simulate the oviposition area of a female dung beetle. The definition of the oviposition area is as follows:
where
X* represents the current local best position;
Lb* and
Ub* represent the lower and upper bounds of the oviposition area, respectively;
R = 1 −
t/Tmax, where
Tmax represents the maximum number of iterations; and
Lb and
Ub represent the lower and upper bounds of the optimization problem.
As indicated by the above formula, the oviposition area is dynamically changing. Therefore, during the iteration process, the position of the brood ball is also dynamically changing. The position of the brood ball is defined as follows:
where
Bi(
t) represents the position information of the
i-th brood ball during the
t-th iteration;
b1 and
b2 are two independent random vectors of size 1 ×
D; and
D represents the dimension of the optimization problem.
2.4.3. Scout Dung Beetle
After being born, the scout dung beetle searches for food in the best foraging area. The definition of the best foraging area is as follows:
where
Xb represents the current local best position, and
Lbb and
Ubb represent the lower and upper bounds of the best foraging area. Therefore, the position of the scout dung beetle is updated as follows:
where
Xi(
t) represents the position information of the
i-th scout dung beetle during the
t-th iteration,
C1 represents a random number following a normal distribution, and
C2 ∈ (0,1) represents a random vector.
2.4.4. Thief Dung Beetle
The thief dung beetle steals dung balls from other dung beetles. As derived from the above equation,
Xb is the best location for competing for food. Therefore, the position information of the thief dung beetle is updated as follows:
where
xi(
t) represents the position information of the
i-th thief dung beetle during the
t-th iteration,
g represents a random vector of size 1 ×
D following a normal distribution, and
S represents a constant value.
The workflow diagram of optimizing fuzzy PID parameters using the dung beetle optimization algorithm is shown in
Figure 8.
The optimization principle diagram of the dung beetle optimization algorithm for tuning fuzzy PID parameters is shown in
Figure 9.
2.5. Applying DBO to Adjust Controller Parameters
Three steps were conducted to connect the position of the dung beetle to controller parameter adjustments and to associate the DBO’s fitness function with the fitness function for control problems.
First, the controller parameter vector was set as P = [Kp, Ki, Kd], where Kp, Ki, and Kd are the proportional, integral, and derivative gains of the PID controller, respectively.
Second, the position of the dung beetle X was mapped to the controller parameters P, where each dung beetle represents a set of possible PID parameters. Updates to the position of the dung beetle will directly affect the adjustments of the PID parameters. Use a linear mapping function f(X) = aX + b, where a and b are mapping coefficients. These coefficients can be adjusted based on the desired range of controller parameters.
Lastly, the fitness function for the control problem was defined by choosing the integral of time-weighted absolute error (ITAE) as the fitness function for the control issue, defined as , where e(t) is the system’s error signal, and tf is the final time.
4. Conclusions
This study conducted an in-depth investigation of the four-bar targets in MRTD (Minimum Resolvable Temperature Difference) detection instruments. Unlike traditional MRTD devices that use temperature-uncontrollable targets, this paper innovatively proposes a design for temperature-controllable four-bar targets. By installing thermoelectric coolers (TECs) and thin-film platinum resistors at the center and periphery of the targets, the precision of MRTD detection has been significantly enhanced. In terms of temperature control, the study adopts the dung beetle algorithm to optimize the temperature control system, introducing fuzzy control to dynamically adjust PID parameters online, replacing the traditional fixed parameter adjustment method, thereby improving the system’s robustness and disturbance rejection capability. By optimizing the fuzzy PID controller with the dung beetle algorithm, the study approaches the problem of stable tracking of step commands with fuzzy PID, seeking the optimal real-time adjustment parameters to demonstrate the significant advantages of the fuzzy PID control after optimization with the dung beetle algorithm. On the Simulink platform, a comparative simulation analysis of DBO-optimized fuzzy PID, PSO-optimized fuzzy PID, fuzzy PID, and traditional PID was conducted. The results show that DBO-optimized fuzzy PID has notable advantages over traditional PID and fuzzy PID in terms of a lower overshoot, a shorter adjustment time, and a stronger anti-interference capability. Additionally, the study performed a simulation analysis of the temperature field of the four-bar targets on the Comsol platform, validating the improvement in temperature uniformity, which fully meets the temperature control requirements of the four-bar targets in MRTD detection instruments, thus significantly enhancing the performance of MRTD detection.
In subsequent research, it is possible to consider using more advanced intelligent algorithms to optimize its parameters, which might lead to a better combination of parameters. Additionally, during the experimental process, more environmental factors could be considered to verify the system’s performance under complex conditions.