Blog articleMethodology & analyticsEngineering & technology

Machine learning for automatic voltage regulation: what a PhD project needs to get right

Automatic voltage regulators keep a synchronous generator's terminal voltage steady by adjusting its excitation. This article explains the physics, reviews how controllers are tuned and where machine learning fits, and sets out the design choices that make a doctoral project on learning-based voltage regulation credible.

What you will learn

  • Explain how excitation controls the terminal voltage of a synchronous generator
  • Describe the standard AVR control loop and the metrics used to judge it
  • Distinguish optimisation-based tuning from learning-based control
  • Design fair comparisons between a proposed controller and baselines
  • Report simulations and experiments so that others can reproduce them

What you will unlearn

  • Magnetic saturation changes the resistance of the field circuit.Saturation raises the reluctance of the iron, so flux grows less than in proportion to field current; resistance is unaffected.
  • Armature reaction is a loss.Armature reaction is a change in air-gap flux caused by stator current, which shifts terminal voltage; it is not itself a power loss.
  • Unsupervised learning can control the voltage directly.Unsupervised methods can identify operating regimes, but control actions come from supervised learning, reinforcement learning or optimisation.
  • A controller that beats PID in one simulation is better.Claims need identical test conditions, several disturbances, robustness checks and, ideally, hardware validation.

Skills you will practise

  • Excitation system modelling
  • Controller tuning and comparison
  • Reinforcement learning experiment design
  • Robustness testing
  • Reproducible simulation

How excitation controls generator voltage

A synchronous generator produces an electromotive force (EMF) when the magnetic flux of its rotor sweeps the stator conductors. The induced EMF depends on the speed of rotation, the number of turns and the flux. Because a grid-connected generator must run at synchronous speed to hold frequency, speed cannot be used to control voltage. The practical control variable is the flux, set by the direct current in the rotor's field winding: the excitation. The automatic voltage regulator (AVR) is the part of the excitation system that measures terminal voltage, compares it with a reference and adjusts the excitation to remove the difference.

At no load, terminal voltage rises almost linearly with field current until the iron begins to saturate. Saturation raises the reluctance of the magnetic path, so each further increase in field current produces a smaller increase in flux and voltage.

On load, stator current produces its own magnetic field. This armature reaction, together with leakage reactance and winding resistance, makes the terminal voltage differ from the internal EMF. With a lagging (inductive) load the terminal voltage falls, and the AVR must raise the excitation to restore it; with a leading load it may rise. Armature reaction is therefore a flux effect that the controller compensates, not a loss in itself. Many practical regulators also include reactive current compensation and limiters for over- and under-excitation, so that parallel generators share reactive power and the machine stays within its capability.

The AVR control loop and how it is judged

Block model of an automatic voltage regulator loop
Figure 1. Model of an automatic voltage regulator.

Studies of AVR control commonly use a linearised loop of first-order blocks, each with a gain and a time constant, closed around a controller, most often a proportional-integral-derivative (PID) controller (Mojumder & Roy, 2024; Vamsi et al., 2022).

Blocks in the linearised AVR loop used in most controller studies
BlockRoleNote
ControllerTurns voltage error into a control signalPID, fractional-order PID, fuzzy, model predictive or learned policy
AmplifierAmplifies the control signalA gain of 10 and time constant of 0.1 s are common benchmark values (Mojumder & Roy, 2024)
ExciterSupplies field current to the generatorDC, brushless AC or static (thyristor) designs
GeneratorConverts field current to terminal voltageIts gain and time constant change with load
SensorMeasures and filters terminal voltageSmall time constant; feeds the comparison with the reference

Controllers are judged on the step response (overshoot, rise time, settling time, steady-state error) and on integral error criteria such as IAE, ISE, ITAE and ITSE, often with frequency-domain and robustness analyses (Mojumder & Roy, 2024; Can, 2023). A fast, high-gain AVR is not automatically better: in a power system it can weaken the damping of rotor oscillations, which is why excitation systems are designed together with power system stabilisers.

Where machine learning fits

Much of the literature labelled "intelligent" AVR control is about tuning. Surveys describe a long line of metaheuristic algorithms (particle swarm, genetic algorithms, grey wolf, artificial bee colony, teaching-learning-based optimisation and many more) used to choose PID or fractional-order PID gains (Sivanandhan & Thriveni, 2024; Mojumder & Roy, 2024). These are optimisation methods, not machine learning, and a review of them found that algorithms were rarely compared under identical conditions, often with custom objective functions, and seldom with computational cost reported (Mojumder & Roy, 2024). Comparative studies frequently find several optimisers performing similarly (Can, 2023).

Roles machine learning can play in voltage regulation research
RoleWhat is learnedTypical evidence needed
Tuning or adaptive gain schedulingController gains for operating conditionsPerformance across loads; comparison with a well-tuned PID
Learned controller (supervised)A mapping from measured states to control action, imitating a reference controllerGeneralisation beyond training conditions
Reinforcement learningA control policy from reward signals in simulationSeveral random seeds, safety constraints, transfer to hardware
System identificationA model of the exciter and generator from dataValidation on held-out operating data
Regime detection (unsupervised)Clusters of operating conditionsUsed to select or schedule controllers, not to act directly

Unsupervised learning is sometimes proposed for control. Unsupervised methods can group operating conditions, which can help schedule controller settings, but they do not themselves produce control actions. A doctoral proposal should state precisely which role the learning plays.

What recent studies show about evaluation

Most AVR controller studies are simulations in MATLAB/Simulink (Mojumder & Roy, 2024). A thesis comparing PID, model predictive and fuzzy controllers in simulation found model predictive control performed best (Mazibuko, 2023), while a conference study of hybrid optimisation showed responses graphically but did not report quantitative performance measures (Vamsi et al., 2022), which makes its claim of superiority hard to judge. Hardware evidence is rarer. Altınkaya and Ekmekci (2024) implemented PID tuning with an adaptive bee colony and fuzzy logic on a programmable logic controller driving a small micro-hydro prototype; in a 0 to 1000 W load step, settling time fell from 17 s with the default PLC tuning to 4 s. They also note the limits: small experimental generators, sudden load steps that are uncommon in real systems and no repeated trials.

Their study is also a useful example of where learning-based work gets its data. The authors ran about 500 preliminary experiments with random loads, kept the best-performing settings and used a subset to train the tuner (Altınkaya & Ekmekci, 2024). Any learned controller or plant model needs a similar account: which operating points were sampled, how many, from simulation or hardware, and which were held back for testing. A model trained only on small load steps around one operating point says little about faults, large disturbances or a different machine, so the data plan is part of the research design, not a preliminary to it (Kapoor & Narayanan, 2023).

Designing a credible doctoral project

  1. State the gap precisely. Not "ML for AVR", but which operating problem (wide load range, nonlinearity, parameter drift, delays) existing controllers handle poorly.
  2. Choose strong baselines. A well-tuned PID, and at least one advanced controller such as model predictive control, tuned with the same effort as your method.
  3. Use identical test conditions. Same model, parameters, disturbances, objective function and computing budget for every controller (Mojumder & Roy, 2024).
  4. Test robustness. Vary generator parameters, load type and measurement noise; include saturation and limiters, not only the linear model.
  5. Respect learning-specific pitfalls. Report results over several random seeds and hyperparameter settings, since reinforcement learning results vary strongly with both (Henderson et al., 2018); keep test scenarios separate from those used in training (Kapoor & Narayanan, 2023).
  6. Plan validation beyond simulation. Hardware-in-the-loop or a laboratory machine, with repeated trials (Altınkaya & Ekmekci, 2024).
  7. Consider computational cost. Excitation control runs in real time, so report execution time on the target hardware; lightweight models may be preferable to large networks.

Worked example (illustrative)

A hypothetical project asks whether a reinforcement learning policy can keep terminal voltage within limits over a wider load range than a fixed PID. The researcher builds a Simulink model with saturation and excitation limits, trains the policy on load steps between 20% and 80% of rating, and tests on unseen steps across the full load range, on parameter changes of plus or minus 20%, and with sensor noise. Baselines are a PID tuned by a standard optimiser and a model predictive controller. Results are reported as means and spread over ten training seeds (Henderson et al., 2018), with code and model files shared following a reproducibility checklist (Pineau et al., 2021). A final chapter repeats the main tests on a laboratory generator.

What to report, and common mistakes

Reporting checklist for a learning-based voltage regulation study
ElementWhat to state
Plant modelBlock structure, every gain and time constant, nonlinearities and limiters
ControllersEach controller, its tuning method and effort, final parameters
ScenariosDisturbances, load changes and parameter variations used for training and for testing
MetricsTime-domain measures, integral criteria, robustness and computation time
Learning detailsSeeds, hyperparameters, training time, and spread of results
ValidationSimulation, hardware-in-the-loop or hardware, with repeated trials
  • Comparing a carefully tuned new method with a poorly tuned PID.
  • Testing on the same scenarios used for training.
  • Reporting one run of a stochastic algorithm.
  • Claiming superiority from step-response plots without numerical measures (Vamsi et al., 2022).
  • Ignoring the interaction between fast voltage control and system damping.

Key takeaways

  • Voltage is regulated through excitation because speed is fixed by frequency; saturation and armature reaction shape the control task.
  • Most "intelligent" AVR studies tune PID gains with metaheuristics, rarely under identical conditions (Mojumder & Roy, 2024; Sivanandhan & Thriveni, 2024).
  • Machine learning can tune, imitate, learn a policy or identify the plant; state which role it plays.
  • Compare with strong baselines across varied scenarios and several seeds (Henderson et al., 2018; Kapoor & Narayanan, 2023).
  • Hardware validation with repeated trials strengthens a thesis considerably (Altınkaya & Ekmekci, 2024).
Your next step

Want to apply this to your own study?

  1. 1Tell us your topic, data and deadline
  2. 2A subject mentor reviews your work with you
  3. 3You get a plan and a quote
Research design

References

  1. Altınkaya, H., & Ekmekci, D. (2024). Tuning of PID controller in PLC-based automatic voltage regulator system using adaptive artificial bee colony–fuzzy logic algorithm. Electronics, 13(24), 5039. https://doi.org/10.3390/electronics13245039
  2. Can, Ö. (2023). Otomatik gerilim regülatörü sistemi için farklı optimizasyon teknikleri ayarlı denetleyici tasarımı [Controller design tuned by different optimisation techniques for an automatic voltage regulator system]. Karadeniz Fen Bilimleri Dergisi, 13(3), 858–870. https://doi.org/10.31466/kfbd.1252029
  3. Henderson, P., Islam, R., Bachman, P., Pineau, J., Precup, D., & Meger, D. (2018). Deep reinforcement learning that matters. Proceedings of the AAAI Conference on Artificial Intelligence, 32(1), 3207–3214. https://doi.org/10.1609/aaai.v32i1.11694
  4. Kapoor, S., & Narayanan, A. (2023). Leakage and the reproducibility crisis in machine-learning-based science. Patterns, 4(9), 100804. https://doi.org/10.1016/j.patter.2023.100804
  5. Mazibuko, N. (2023). Modeling and performance analysis of artificial intelligence (AI) based controllers for AVR of a synchronous generator (SG) [Master's thesis, Durban University of Technology]. DUT Open Scholar. https://doi.org/10.51415/10321/4861
  6. Mojumder, M. R. H., & Roy, N. K. (2024). Review of meta-heuristic optimization algorithms to tune the PID controller parameters for automatic voltage regulator (arXiv:2409.00538) [Preprint]. arXiv. https://arxiv.org/abs/2409.00538
  7. Pineau, J., Vincent-Lamarre, P., Sinha, K., Larivière, V., Beygelzimer, A., d'Alché-Buc, F., Fox, E., & Larochelle, H. (2021). Improving reproducibility in machine learning research (a report from the NeurIPS 2019 reproducibility program). Journal of Machine Learning Research, 22(164), 1–20. https://www.jmlr.org/papers/v22/20-303.html
  8. Sivanandhan, A., & Thriveni, G. (2024). Optimal design of controller for automatic voltage regulator performance enhancement: A survey. Electrical Engineering, 106(4), 3705–3720. https://doi.org/10.1007/s00202-023-02196-5
  9. Vamsi, V., Lavanya, V. U. P., & Kumar, S. (2022). Control of automatic voltage regulator using hybrid optimization techniques. In R. M. Singari & P. K. Kankar (Eds.), Advanced production and industrial engineering (pp. 323–328). IOS Press. https://doi.org/10.3233/ATDE220761

How to cite this article

Choose your referencing style, then copy. Check your university's or journal's guide for local variations.

PhD Research Lab Academy. (2019, November 2). Machine learning for automatic voltage regulation: what a PhD project needs to get right. PhD Research Lab. https://www.phdassistance.com/blog/machine-learning-based-automatic-voltage-regulation/

PhD Research Lab Academy. “Machine Learning for Automatic Voltage Regulation: What a PhD Project Needs to Get Right.” PhD Research Lab, 2 Nov. 2019, www.phdassistance.com/blog/machine-learning-based-automatic-voltage-regulation. Accessed [access date].

PhD Research Lab Academy (2019) Machine learning for automatic voltage regulation: what a PhD project needs to get right. PhD Research Lab. Available at: https://www.phdassistance.com/blog/machine-learning-based-automatic-voltage-regulation/ (Accessed: [access date]).

PhD Research Lab Academy. “Machine Learning for Automatic Voltage Regulation: What a PhD Project Needs to Get Right.” PhD Research Lab. November 2, 2019. https://www.phdassistance.com/blog/machine-learning-based-automatic-voltage-regulation.

PhD Research Lab Academy, ‘Machine Learning for Automatic Voltage Regulation: What a PhD Project Needs to Get Right’ (PhD Research Lab, 2 November 2019) <https://www.phdassistance.com/blog/machine-learning-based-automatic-voltage-regulation> accessed [access date].

PhD Research Lab Academy. Machine learning for automatic voltage regulation: what a PhD project needs to get right [Internet]. PhD Research Lab; 2019 Nov 2 [cited [access date]]. Available from: https://www.phdassistance.com/blog/machine-learning-based-automatic-voltage-regulation/

PhD Research Lab Academy, “Machine learning for automatic voltage regulation: what a PhD project needs to get right,” PhD Research Lab, Nov. 2, 2019. [Online]. Available: https://www.phdassistance.com/blog/machine-learning-based-automatic-voltage-regulation. [Accessed: [access date]].

@online{machine_learning_based_automatic_voltage_regulation_2019,
  author = {{PhD Research Lab Academy}},
  title = {{Machine learning for automatic voltage regulation: what a PhD project needs to get right}},
  organization = {PhD Research Lab},
  date = {2019-11-02},
  url = {https://www.phdassistance.com/blog/machine-learning-based-automatic-voltage-regulation},
  urldate = {[access date]}
}

This article is for learning. Use it to understand the method and cite the original sources above in your own work; do not copy or submit it as your own.

Machine learning for automatic voltage regulationNeed help applying it to your study?
Research design