We use cookies to ensure our website works properly and to personalise your experience. Cookies policy
Department of Electrical and Electronic Engineering, Federal University of Technology, Owerri, Nigeria
This study investigates neural network-based adaptive control for output-voltage regulation of a nonlinear DC-DC buck converter under load resistance variation. A switching-state model and a state-space-averaged model are used to describe the converter. The proposed standalone multilayer perceptron generates the duty-cycle command; offline supervised training using the Levenberg-Marquardt algorithm initializes the network weights, followed by bounded online weight adaptation during closed-loop operation. An existing fixed-gain proportional-integral (PI) controller is retained as the benchmark and is not retuned. MATLAB and Simulink are used to compare both controllers under the same plant conditions, including a 24 V input, a 12 V reference, and a load step from 10 ? to 5 ? at 0.05 s. Output-voltage response, overshoot, undershoot, settling time, and steady-state error are used for evaluation. The simulation results show that the proposed neural network controller achieved improved voltage regulation compared with the fixed-gain PI controller. The overshoot decreased from 1.364093 V to 0.027245 V, while the undershoot decreased from 1.229542 V to 0.503588 V. The settling time was reduced from 25.273 ms to 0.952 ms, and the final absolute voltage error decreased from 0.01141012 V to 0.00177844 V. Furthermore, the final 10 ms mean absolute error decreased from 0.04369681 V to 0.00260704 V. These findings demonstrate the effectiveness of the proposed neural network controller in improving output-voltage stability, reducing transient deviations, and achieving faster voltage recovery under the investigated load variation. The study therefore provides a simulation-based foundation for the application of neural network-based adaptive control in DC-DC buck converters, with the goal of enhancing voltage regulation and maintaining stable converter operation under changing load conditions.
DC-DC buck converters are widely used to supply regulated low-voltage DC loads. A sudden change in load resistance alters current demand and may cause transient voltage deviation. Conventional fixed-gain proportional-integral (PI) control provides a practical baseline, but its transient response depends on tuning and operating conditions. Neural-network duty-cycle prediction offers an alternative means of shaping the voltage response (Dong et al., 2021; Gangula et al., 2023).
Prior work has considered nonlinear, sliding-mode, adaptive and neural control of buck converters (Al-Baidhani et al., 2021; Babes et al., 2022; Gong & Fei, 2023). The present study evaluates an offline-initialized standalone multilayer perceptron (MLP) with bounded, disturbance-gated online output-layer adaptation against an unchanged PI benchmark. The central contribution is a reproducible matched comparison under a specified resistance step, rather than a claim of universal robustness or a hardware-validated converter.
The research objectives are to establish a converter model, develop the neural duty-cycle controller, quantify voltage deviations under load change, and compare regulation performance under identical averaged-plant conditions.
2. CONVERTER MODEL AND OPERATING CONDITIONS

Figure 1: Buck converter circuit configuration (from dissertation).
The ideal converter comprises a controlled switch, freewheel path, inductor L, capacitor C and resistive load R (t). Its inductor current iL and output voltage vo are the state variables. The ON state gives diL/dt = (Vin - vo)/L, whereas the OFF state gives diL/dt = -vo/L. Both states satisfy dvo/dt = [iL - vo/R (t)]/C. Averaging by duty ratio d gives:
d iâ / dt = (d (t)Váµ¢â - vâ)/L (1)
d vâ / dt = (iâ - vâ/R (t))/C (2)
xÌ = A (R)x + B d, x = [iâ vâ]áµ (3)
For fixed Vin and R the averaged state equations are linear in states and duty input; varying R makes the plant time-varying. Neural inference, saturation and adaptation introduce nonlinear behaviour in the controller. The reported closed-loop simulations use this averaged plant, not a PWM-switched power stage.
| Parameter | Value |
|---|---|
| Input voltage | 24 V |
| Reference voltage | 12 V |
| Inductance | 1 mH |
| Capacitance | 470 µF |
| Load resistance | 10 Ω → 5 Ω at t = 0.05 s |
| Nominal duty ratio | 0.5 |
| Sample period | 50 µs |
| Integration step | 1 µs |
| Simulation duration | 0.10 s |
| Initial conditions | vo = 12 V; iL = 1.2 A |
The load step doubles equilibrium current demand from 1.2 A to 2.4 A at 12 V. Since inductor current cannot change instantaneously, the capacitor initially supplies the current deficit, causing a voltage dip.
3. CONTROLLER DESIGN AND TRAINING

Figure 2: Adaptive neural control methodology flowchart (from dissertation).

Figure 3: Averaged buck converter Simulink implementation (from dissertation).
3.1. FIXED-GAIN PI BENCHMARK
The existing PI benchmark uses Kp = 0.015 and Ki = 15, with nominal duty approximately 0.5. Its gains are retained without retuning. The two controllers are simulated independently using the same averaged plant, initial state, reference, numerical settings and load step.
3.2. STANDALONE NEURAL DUTY PREDICTOR

Figure 4: Standalone 5–12–1 neural controller (from dissertation).
The MLP has five inputs, 12 hidden neurons and one output neuron (5-12-1). Its input vector is xk = [ek/12, Δek/12, Ik/12, iL,k/5, Vin,k/24]áµ, where ek = Vref − vo,k and Ik is a bounded accumulated error. Hidden neurons use a hyperbolic-tangent activation; the logistic-sigmoid output predicts absolute duty ratio in [0,1], rather than a PI correction. The network has 85 offline-trainable parameters, of which 13 output-layer weights and bias are eligible for online updates.
Offline supervised training uses a PWM-resolved model-based predictive teacher to select duty targets. This predictor is used for training and candidate evaluation, while the closed-loop comparison plant remains averaged. The scenario grid combines Vin ∈ {22, 24, 26} V with post-step resistance ∈ {3, 5, 7, 15} Ω. Each of 12 scenarios contains four episodes of 110 controller steps; 720 nominal equilibrium anchors are added to training only. Entire scenarios, rather than randomly selected observations, are assigned to training, validation and test partitions. Levenberg–Marquardt training (trainlm) minimizes duty-target prediction error.
| Offline setting | Recorded value |
|---|---|
| Training/validation/test | 4,240 / 880 / 880 |
| Hidden layer | 12 tansig neurons |
| Output activation | logsig |
| Maximum epochs | 350 |
| Selected epoch | 56 |
| Prediction horizon | 12 periods (0.6 ms) |
| Random seed | 42 |
3.3. DISTURBANCE-GATED ONLINE ADAPTATION

Figure 5: Adaptive neural network Simulink implementation (from dissertation).
e (k) = Váµ£âð» − vâ(k) (4)
x (k) = [e/12, Δe/12, ∫e/12, iâ/5, Váµ¢â/24]áµ (5)
h (k) = tanh (Wâx (k) + bâ) (6)
d (k) = σ(Wâh (k) + bâ) (7)
The controller samples output voltage, inductor current and input voltage every 50 µs. A load-conductance estimate is formed from the capacitor-current balance and smoothed. When disturbance and error gates are met, a PWM-resolved internal predictor evaluates candidate duty targets. A normalized gradient step updates only the 12 output weights and output bias, with the hidden layer frozen. The candidate update is clipped and accepted only within a Euclidean trust region of 0.012 relative to the offline output-layer parameters. Near the voltage reference, slow parameter restoration regularizes the output weights. These restrictions bound parameter movement but do not constitute a global stability proof.
4. SIMULATION PROCEDURE AND PERFORMANCE METRICS
MATLAB was used for offline training, data handling and performance analysis; Simulink implemented the matched averaged-plant closed-loop simulations. The 24 V input, 12 V reference, 10 Ω → 5 Ω step at 0.05 s and 0.10 s total simulation are the sole reported principal closed-loop comparison. The nominal scenario appears in offline test evaluation; it should not be described as an entirely unseen operating condition.
Post-step overshoot and undershoot are measured relative to 12 V. Settling time is measured after t = 0.05 s using a ±2% tolerance band (11.76–12.24 V) and requires the voltage to remain within the band for the rest of the simulation. Final absolute error uses the last sample. Final-window mean absolute error (MAE) uses 0.09–0.10 s. All indices are calculated from the respective logged output-voltage trajectories.
RESULTS AND DISCUSSION

Figure 6: Output voltage response under the load step (from dissertation).

Figure 7: Inductor current response (from dissertation).
5.1. OFFLINE DUTY-PREDICTION ACCURACY
| Partition | RMSE (duty ratio) |
|---|---|
| Training | 0.02616 |
| Validation | 0.02212 |
| Testing | 0.02391 |
The selected network corresponds to epoch 56. The lower validation and test RMSE values do not imply a faulty split: scenario composition differs and equilibrium anchors appear only in training. These errors measure agreement with model-generated duty targets, not voltage-regulation accuracy.
5.2. MATCHED LOAD-STEP PERFORMANCE
| Metric | Fixed-gain PI | Adaptive NN | Reduction |
|---|---|---|---|
| Overshoot | 1.364093 | 0.027245 | 98.00% |
| Undershoot | 1.229542 | 0.503588 | 59.04% |
| Settling time (ms) | 25.273 | 0.952 | 96.23% |
| FAE (V) | 0.01141012 | 0.00177844 | 84.41% |
| Final 10 ms MAE (V) | 0.04369681 | 0.00260704 | 94.03% |
For the tested step, PI reached approximately 13.364093 V maximum and 10.770458 V minimum, compared with 12.027245 V and 11.496412 V for the adaptive NN. Both controllers initially violated the ±2% band, but the NN limited the dip and subsequent overshoot. PI settled at approximately 0.075273 s absolute simulation time, whereas the NN settled at approximately 0.050952 s. Thus the measured settling interval decreased by 96.23% for this single test. The final 10 ms MAE decreased by 94.03%, indicating lower sustained voltage error near the end of the simulation. These findings demonstrate improved voltage regulation relative to the unchanged PI baseline for the specified operating point. They do not establish superiority over an optimally retuned PI controller.

Figure 8: Additional comparative simulation result (from dissertation).

Figure 9: Additional performance plots (from dissertation).

Figure 10: Additional performance plots (from dissertation).
5.3. ONLINE UPDATE RECORD AND INTERPRETATION
The saved run logged 15 accepted predictive-target output-layer updates. The first accepted update occurred at t = 0.050100 s, 0.100 ms after the load step (two controller intervals). This confirms active online adaptation during the reported simulation. It does not isolate the causal contribution of adaptation: a matched comparison against the identical neural network with online updates disabled would be needed to quantify that effect.
5.4. SCOPE OF THE FINDINGS
The principal performance comparison covers one 24 V, 10 Ω → 5 Ω disturbance on an ideal averaged plant over 0.10 s. Offline training across other voltages and loads is not equivalent to closed-loop robustness validation at those points. The results do not quantify switching ripple, component losses, efficiency, thermal behaviour, processor execution time, hardware feasibility or formal global stability. Future work should compare adaptation enabled and disabled, broaden disturbances, test a PWM-switched plant and validate practical implementation.
CONCLUSION
A standalone 5-12-1 neural duty-cycle controller with offline Levenberg–Marquardt training and bounded online output-layer adaptation was evaluated against an unchanged PI benchmark. Under the matched 24 V input, 12 V reference and 10 Ω → 5 Ω load step, the neural controller reduced overshoot, undershoot, settling time, final absolute error and final-window MAE by 98.00%, 59.04%, 96.23%, 84.41% and 94.03%, respectively. Fifteen accepted online updates were recorded. These simulation findings support improved transient and end-of-run regulation for the tested averaged-plant condition; broader robustness and adaptation-specific benefits remain for further investigation.
REFERENCES
Samuel Solomon Ojochenemi, Matthew Olubiwe, Chijioke K. Joe-Uzuegbu, Design of Neural Network-Based Adaptive Control for Output Voltage Stability of a Nonlinear Buck Converter Under Load Variation, Int. J. Sci. R. Tech., 2026, 3 (12), 92-98. https://doi.org/10.5281/zenodo.24890651
10.5281/zenodo.24890651