Author Contributions
Conceptualization, M.F.F.P., C.S.M., F.L.Z. and A.R.M.; methodology, M.F.F.P. and A.R.M.; software, M.F.F.P. and C.S.M.; validation, M.F.F.P., F.L.Z. and A.R.M.; formal analysis, M.F.F.P., F.L.Z. and A.R.M.; investigation, M.F.F.P., C.S.M. and A.R.M.; resources, F.L.Z. and A.R.M.; data curation, M.F.F.P.; writing—original draft preparation, M.F.F.P., C.S.M. and A.R.M.; writing—review and editing, M.F.F.P., C.S.M., F.L.Z. and A.R.M.; visualization, M.F.F.P.; supervision, C.S.M., F.L.Z. and A.R.M.; project administration, C.S.M., F.L.Z. and A.R.M.; funding acquisition, C.S.M., F.L.Z. and A.R.M. All authors have read and agreed to the published version of the manuscript.
Figure 1.
Diagram of the thermoelectric device (Peltier cell). The structure of ceramics, copper, and semiconductors is illustrated, as well as the heat flow induced by electrical power.
Figure 1.
Diagram of the thermoelectric device (Peltier cell). The structure of ceramics, copper, and semiconductors is illustrated, as well as the heat flow induced by electrical power.
Figure 2.
Comparison of the temperature from experimental measurements, the three-node thermal model, and the fitted fractional-order model.
Figure 2.
Comparison of the temperature from experimental measurements, the three-node thermal model, and the fitted fractional-order model.
Figure 3.
FOPID hybrid control architecture with rule-based adaptive supervisor. Serial and TCP flows between Arduino (IDE v2.3.8), Processing (v4.5.2), and Python (v3.10.11) are shown.
Figure 3.
FOPID hybrid control architecture with rule-based adaptive supervisor. Serial and TCP flows between Arduino (IDE v2.3.8), Processing (v4.5.2), and Python (v3.10.11) are shown.
Figure 4.
Probability density distribution of the control error. The green curve (FOPID-AS) exhibits greater leptokurtosis and a higher zero-centeredness compared to the conventional PID (blue) and static FOPID (orange).
Figure 4.
Probability density distribution of the control error. The green curve (FOPID-AS) exhibits greater leptokurtosis and a higher zero-centeredness compared to the conventional PID (blue) and static FOPID (orange).
Figure 5.
Temporal evolution of the thermal response and adaptive parameters of the FOPID-AS controller. In contrast to the fixed-parameter behavior of PID and static FOPID controllers, the dynamic adjustment of the fractional orders enables real-time compensation of disturbances and smoother convergence.
Figure 5.
Temporal evolution of the thermal response and adaptive parameters of the FOPID-AS controller. In contrast to the fixed-parameter behavior of PID and static FOPID controllers, the dynamic adjustment of the fractional orders enables real-time compensation of disturbances and smoother convergence.
Figure 6.
Comparison of the temperature evolution of the Peltier cell under PID, Fuzzy-PID, FOPID, and FOPID-AS controllers. The dotted black line indicates the setpoint , and the shaded gray area represents ±5% tolerance. FOPID and FOPID-AS reach the setpoint, while PID and Fuzzy-PID remain within the tolerance band.
Figure 6.
Comparison of the temperature evolution of the Peltier cell under PID, Fuzzy-PID, FOPID, and FOPID-AS controllers. The dotted black line indicates the setpoint , and the shaded gray area represents ±5% tolerance. FOPID and FOPID-AS reach the setpoint, while PID and Fuzzy-PID remain within the tolerance band.
Figure 7.
Measured Peltier power as a function of PWM duty cycle. The dashed line represents the linear regression used for energy calculation.
Figure 7.
Measured Peltier power as a function of PWM duty cycle. The dashed line represents the linear regression used for energy calculation.
Figure 8.
Evolution of the cumulative absolute error (CAE) for PID, FOPID, and FOPID with adaptive supervision. The dashed line indicates the onset of steady-state operation ( s).
Figure 8.
Evolution of the cumulative absolute error (CAE) for PID, FOPID, and FOPID with adaptive supervision. The dashed line indicates the onset of steady-state operation ( s).
Figure 9.
Surface temperature response under thermal perturbation for PID, Fuzzy-PID, FOPID, and FOPID-AS. The shaded area indicates the perturbation interval (60–120 s), and the dashed line represents the reference temperature of 12 °C.
Figure 9.
Surface temperature response under thermal perturbation for PID, Fuzzy-PID, FOPID, and FOPID-AS. The shaded area indicates the perturbation interval (60–120 s), and the dashed line represents the reference temperature of 12 °C.
Figure 10.
Control error recovery after thermal perturbation for all controllers.
Figure 10.
Control error recovery after thermal perturbation for all controllers.
Figure 11.
Error distribution during thermal perturbation (60–120 s) for all controllers. The central line shows the median, the box spans the interquartile range, and the whiskers indicate the 5th and 95th percentiles.
Figure 11.
Error distribution during thermal perturbation (60–120 s) for all controllers. The central line shows the median, the box spans the interquartile range, and the whiskers indicate the 5th and 95th percentiles.
Figure 12.
Control cycle time of the FOPID-AS controller during the experimental run. The average loop time remains close to , with small variations across the test duration.
Figure 12.
Control cycle time of the FOPID-AS controller during the experimental run. The average loop time remains close to , with small variations across the test duration.
Figure 13.
Inference time of the FOPID-AS controller during the experimental run. The average duration remains close to , with minimal variations throughout the test.
Figure 13.
Inference time of the FOPID-AS controller during the experimental run. The average duration remains close to , with minimal variations throughout the test.
Figure 14.
CPU usage during the experimental run with the FOPID-AS controller. The average processor utilization remains around with minor fluctuations throughout the test.
Figure 14.
CPU usage during the experimental run with the FOPID-AS controller. The average processor utilization remains around with minor fluctuations throughout the test.
Table 1.
Fractional-order model fitting results by transient phase.
Table 1.
Fractional-order model fitting results by transient phase.
| Phase | K | (s) | | (3-Node) | RMSE (°C) |
|---|
| transition | 1.929 | 15.802 | 5.936 | 0.99 | 0.87 |
| fine | 0.342 | 1142.800 | 2.018 | 0.98 | 0.92 |
Table 2.
Fractional-order model parameters per phase.
Table 2.
Fractional-order model parameters per phase.
| Phase | K | (s) | |
|---|
| transition | 1.93 | 15.80 | 5.94 |
| fine | 0.34 | 1142.80 | 2.02 |
Table 3.
Effect of short-term memory length M on control performance.
Table 3.
Effect of short-term memory length M on control performance.
| M | ITAE | IAE | RMSE | (°C) | CPU (%) | (s) |
|---|
| 20 | 12,973.487 | 31.416 | 0.190 | 0.151 | 45.325 | 35.53 |
| 30 | 11,261.408 | 24.632 | 0.157 | 0.136 | 32.635 | 34.91 |
| 40 | 12,967.707 | 31.281 | 0.190 | 0.150 | 33.356 | 36.41 |
Table 4.
Adaptive supervision rules according to error regions.
Table 4.
Adaptive supervision rules according to error regions.
| Region | Condition | | | | |
|---|
| Recovery | | | 0.55 | 1.10 | 0 |
| Transition | | Interpolated | Interpolated | Interpolated | Interpolated |
| Accuracy | | | 0.85 | 1.85 | |
Table 5.
Steady-state performance analysis at 8 °C for different values of A.
Table 5.
Steady-state performance analysis at 8 °C for different values of A.
| A | ITAE | IAE | RMSEss | (°C) | PWMmean,ss |
|---|
| 1.0 | 31,833.33 | 0.65 | 0.65 | 0.05 | 121.12 |
| 1.1 | 35,962.00 | 0.69 | 0.69 | 0.03 | 122.88 |
| 1.2 | 32,202.38 | 0.61 | 0.61 | 0.03 | 119.34 |
| 1.3 | 32,469.29 | 0.64 | 0.64 | 0.05 | 120.73 |
Table 6.
Technical configuration and PSO search ranges.
Table 6.
Technical configuration and PSO search ranges.
| Configuration | Value/Range |
|---|
| Swarm size () | 30 |
| Maximum iterations () | 50 |
| Simulation step () | 0.5 s |
| GL memory in optimization (M) | 20 |
| Proportional gain range () | |
| Gain range | |
| Order range | |
Table 7.
Optimal FOPID parameters after PSO optimization.
Table 7.
Optimal FOPID parameters after PSO optimization.
| | | | |
|---|
| 58.93 | 3.91 | 2.66 | 0.67 | 1.47 |
Table 8.
Sensitivity analysis of PSO configuration and objective function weights.
Table 8.
Sensitivity analysis of PSO configuration and objective function weights.
| Configuration | Optimized Parameters [Kp, Ki, Kd, , ] |
|---|
| 20 particles, 40 iterations | [58.94, 4.55, 3.44, 0.70, 1.02] |
| 30 particles, 50 iterations | [58.93,
3.91, 2.66, 0.67, 1.47] |
| 40 particles, 100 iterations | [58.93, 4.64, 4.96, 0.72, 0.50] |
| [54.85, 5.00, 5.00, 0.50, 0.67] |
| [54.86, 1.26, 5.00, 0.53, 1.08] |
| [54.86, 1.20, 4.20, 0.85, 1.36] |
| [54.87, 4.47, 4.90, 0.50, 0.76] |
| [54.86, 4.15, 4.12, 1.49, 1.28] |
Table 9.
Reproducibility of steady-state surface temperature between repetitions.
Table 9.
Reproducibility of steady-state surface temperature between repetitions.
| Control | Average (°C) | (°C) | CV (%) |
|---|
| PID | 12.3356 | 0.0127 | 0.10 |
| Fuzzy-PID | 12.3759 | 0.0208 | 0.17 |
| FOPID | 12.0123 | 0.0357 | 0.30 |
| FOPID-AS | 11.9709 | 0.0084 | 0.07 |
Table 10.
ANOVA and Tukey HSD for steady-state surface temperature .
Table 10.
ANOVA and Tukey HSD for steady-state surface temperature .
| Comparison | Mean Difference (°C) | Adjusted p-Value | Significant? |
|---|
| FOPID vs. FOPID-AS | −0.1005 | 0.3260 | No |
| FOPID vs. Fuzzy-PID | 0.4456 | 0.0002 | Yes |
| FOPID vs. PID | 0.3298 | 0.0014 | Yes |
| FOPID-AS vs. Fuzzy-PID | 0.5460 | 0.0000 | Yes |
| FOPID-AS vs. PID | 0.4302 | 0.0002 | Yes |
| Fuzzy-PID vs. PID | −0.1158 | 0.2275 | No |
Table 11.
Statistical metrics of the steady-state error distribution for different controllers.
Table 11.
Statistical metrics of the steady-state error distribution for different controllers.
| Controller | Std of Error (°C) | Kurtosis | Width 95% (°C) |
|---|
| PID | 1.61 | 8.57 | 8.10 |
| Fuzzy-PID | 1.84 | 6.99 | 9.00 |
| FOPID | 1.76 | 7.24 | 8.86 |
| FOPID-AS | 1.76 | 6.45 | 8.97 |
Table 12.
Experimental Peltier power as a function of PWM duty cycle.
Table 12.
Experimental Peltier power as a function of PWM duty cycle.
| Time (s) | PWM | (°C) | V (V) | I (A) | P (W) |
|---|
| 0–60 | 0 | 0.0 | 12 | 0.00 | 0.00 |
| 60–120 | 50 | 4.6 | 12 | 0.29 | 3.48 |
| 120–180 | 150 | 16.6 | 12 | 0.80 | 9.60 |
| 180–240 | 200 | 26.5 | 12 | 0.93 | 11.16 |
| 240–300 | 255 | 33.4 | 12 | 1.09 | 13.08 |
Table 13.
Settling times () with a tolerance band of .
Table 13.
Settling times () with a tolerance band of .
| Control | (s) |
|---|
| PID | 105.00 |
| FuzzyPID | 102.73 |
| FOPID | 88.00 |
| FOPID-AS | 98.00 |
Table 14.
Comparison of transient metrics ( s).
Table 14.
Comparison of transient metrics ( s).
| Control | Undershoot (%) | (s) | ITAE (°C·s) | Energy (Wh) |
|---|
| PID | 9.42 | 33.00 | 5148.06 | 0.18 |
| Fuzzy-PID | 11.08 | 35.51 | 6102.42 | 0.20 |
| FOPID | 16.08 | 32.00 | 5408.98 | 0.19 |
| FOPID-AS | 18.92 | 31.20 | 6612.97 | 0.18 |
Table 15.
Comparison of metrics in steady state ( s).
Table 15.
Comparison of metrics in steady state ( s).
| Control | (°C) | (°C) | Ripple (°C) | Energy (Wh) |
|---|
| PID | 0.34 | 0.11 | 0.57 | 0.31 |
| Fuzzy-PID | 0.38 | 0.07 | 0.40 | 0.31 |
| FOPID | 0.08 | 0.07 | 0.53 | 0.32 |
| FOPID-AS | 0.08 | 0.10 | 0.67 | 0.30 |
Table 16.
Dynamic and steady-state performance metrics for the evaluated controllers.
Table 16.
Dynamic and steady-state performance metrics for the evaluated controllers.
| | Transient Regime | Steady-State Regime |
|---|
| Control | (s) | ITAE | Energy (Wh) | (°C) | IAE | RMSE | (°C) |
|---|
| PID | 33.00 | 5148.06 | 0.18 | 0.34 | 65.00 | 0.35 | 0.11 |
| Fuzzy-PID | 35.51 | 6102.42 | 0.20 | 0.38 | 73.24 | 0.38 | 0.07 |
| FOPID | 32.00 | 5408.98 | 0.19 | 0.08 | 15.34 | 0.11 | 0.11 |
| FOPID-AS | 31.20 | 6612.97 | 0.18 | 0.08 | 14.94 | 0.13 | 0.10 |
Table 17.
Performance metrics under thermal perturbation.
Table 17.
Performance metrics under thermal perturbation.
| Controller | Max Error (°C) | Mean Error (°C) | RMSE (°C) | IAE (°C·s) | Settling Time (s) |
|---|
| PID | 8.27 | 1.95 | 2.35 | 1206.70 | – |
| Fuzzy-PID | 7.70 | 1.22 | 1.72 | 802.30 | – |
| FOPID | 8.83 | 1.08 | 1.82 | 720.12 | 534.00 |
| FOPID-AS | 8.17 | 0.99 | 1.71 | 692.12 | 494.78 |
Table 18.
Computational metrics of the FOPID-AS controller during experimental control.
Table 18.
Computational metrics of the FOPID-AS controller during experimental control.
| Metric | Value |
|---|
| Mean control loop (ms) | 99.35 |
| Mean FOPID-AS time (ms) | 0.008 |
| Mean latency (ms) | 99.34 |
| Control frequency (Hz) | 10.07 |
| CPU usage (%) | 33.89 |
| RAM usage (MB) | 58.76 |
Table 19.
FOPID-AS transient response metrics per phase.
Table 19.
FOPID-AS transient response metrics per phase.
| Phase | Overshoot (%) | Time in ±0.5 °C (s) | Kp Mean | Mean | Mean |
|---|
| aggressive | 58.33 | 0.0 | 76.609 | 0.550 | 1.100 |
| transition | 25.00 | 41.3 | 63.910 | 0.756 | 1.614 |
| fine | 1.67 | 268.3 | 47.144 | 0.850 | 1.850 |