Generating Interpretable Fuzzy Controllers using Particle Swarm Optimization and Genetic Programming

Daniel Hein, Steffen Udluft, Thomas A. RunklerarXiv 2018 · DOI · arXiv

TL;DR

This paper introduces Fuzzy Genetic Programming Reinforcement Learning (FGPRL), a method that autonomously designs interpretable fuzzy controllers for complex industrial systems. By combining genetic programming with model-based reinforcement learning, the approach automatically selects relevant sensors, determines the optimal number of control rules, and tunes parameters to produce high-performing policies that humans can actually understand.

What Problem Does This Paper Address?

In industrial settings like wind or gas turbine control, "black-box" AI models (like deep neural networks) are often a tough sell. Engineers need interpretable policies—rules they can inspect, validate, and trust. Fuzzy controllers have been the industry standard for decades because they use human-like "if-then" logic.

However, designing these controllers for modern, high-dimensional systems is a nightmare. A typical industrial plant might have hundreds of sensors. Manually picking which ones matter, deciding how many fuzzy rules are needed, and tuning every mathematical parameter is often infeasible. While previous methods like Fuzzy Particle Swarm Reinforcement Learning (FPSRL) could tune parameters, they still required humans to pre-define the controller's structure and perform manual feature selection.

Methods

The authors propose FGPRL, which automates the entire design pipeline. The process follows a model-based batch reinforcement learning (RL) workflow:

  1. Model Training: First, a neural network "world model" is trained on historical data from the plant.
  2. Policy Evolution (GP): Instead of just tuning numbers, the system uses Genetic Programming (GP) to evolve the controller's structure. Each "individual" in the population is a fuzzy controller represented as a function tree.
  3. Strongly-Typed GP: To ensure the evolved trees actually represent valid fuzzy logic, the authors use a "strongly-typed" approach. This restricts how different building blocks (variables, membership functions, rules) can be connected.
  4. Fitness Evaluation: Each candidate controller is tested against the neural network world model using Monte Carlo rollouts to see how much "reward" (e.g., efficiency, low wear-and-tear) it accumulates.
  5. Local Search: Once the GP finds a promising structure, a final Particle Swarm Optimization (PSO) step fine-tunes the numerical parameters to squeeze out extra performance.
Fig. 1. Comparing FPSRL to FGPRL

Datasets

The researchers evaluated their method on two distinct benchmarks:

  • Cart-pole Swing-up: A classic RL benchmark involving a pole on a cart. It is low-dimensional and deterministic, serving as a baseline to see if the automated method can match human-designed structures.
  • Industrial Benchmark (IB): A high-fidelity simulation designed by Siemens to mimic the complexities of real-world plants. It features a 180-dimensional state vector, stochastic (random) dynamics, delayed effects, and conflicting goals (e.g., maximize output while minimizing fatigue).

Key Insights and Ideas

  • Automated Feature Selection: In the Industrial Benchmark, FGPRL successfully ignored dozens of irrelevant inputs, identifying a tiny subset of critical state variables (like specific historical observations of velocity and gain) needed for control.
  • The Complexity-Performance Trade-off: Unlike methods that give you one "best" answer, FGPRL produces a Pareto front. This allows an engineer to choose between a very simple, highly interpretable controller and a slightly more complex one that offers better performance.
  • Search Space vs. Prior Knowledge: The study found that for simple problems where the "right" features are obvious (like Cart-pole), manual structure design plus PSO is faster. However, for complex industrial problems where the "right" structure is unknown, the broad search of GP is significantly more effective.
Fig. 2. A fuzzy GP individual

Key Results

  • Industrial Benchmark Superiority: On the complex Industrial Benchmark, FGPRL outperformed the baseline FPSRL. It achieved a higher performance score ($\tilde{F} = -5635$) at a lower complexity level (94) compared to the best FPSRL results ($\tilde{F} = -5700$ at complexity 129).
  • Interpretability Gains: Qualitative analysis showed that FGPRL policies were substantially more compact. While the baseline method used all pre-selected features in every rule, FGPRL evolved rules that only used the absolute minimum number of variables required to get the job done.
  • Robustness: Policies trained on the neural network models transferred well to the "real" dynamics of the benchmarks, suggesting the method is robust to model inaccuracies.

Limitations and Future Work

  • Computational Cost: The paper notes that FGPRL requires a massive number of fitness evaluations (see the table below). Searching the space of all possible program structures is far more expensive than just tuning parameters of a fixed structure.
  • Model Dependency: The quality of the final controller is strictly capped by the accuracy of the initial neural network world model. If the model misses a critical plant dynamic, the evolved controller will too.
  • Future Directions: The authors suggest that combining GP with even more sophisticated local search methods or exploring different fuzzy inference types (like Takagi-Sugeno) could further improve results.
Comparison of computational costs between the two methods. FGPRL involves significantly more fitness calculations due to the larger search space of GP.

Summary updated

Abstract

Autonomously training interpretable control strategies, called policies, using pre-existing plant trajectory data is of great interest in industrial applications. Fuzzy controllers have been used in industry for decades as interpretable and efficient system controllers. In this study, we introduce a fuzzy genetic programming (GP) approach called fuzzy GP reinforcement learning (FGPRL) that can select the relevant state features, determine the size of the required fuzzy rule set, and automatically adjust all the controller parameters simultaneously. Each GP individual's fitness is computed using model-based batch reinforcement learning (RL), which first trains a model using available system samples and subsequently performs Monte Carlo rollouts to predict each policy candidate's performance. We compare FGPRL to an extended version of a related method called fuzzy particle swarm reinforcement learning (FPSRL), which uses swarm intelligence to tune the fuzzy policy parameters. Experiments using an industrial benchmark show that FGPRL is able to autonomously learn interpretable fuzzy policies with high control performance.
BibTeX
@misc{hein2018generating,
  author = {Daniel Hein and Steffen Udluft and Thomas A. Runkler},
  title = {{Generating Interpretable Fuzzy Controllers using Particle Swarm Optimization and Genetic Programming}},
  year = {2018},
  eprint = {1804.10960},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.10960},
}

Loading related content...

Figure