An Approach to Analyze Niche Evolution in XCS Models
Pier Luca Lanzi
TL;DR
This work addresses how to analyze niche evolution in XCS classifier systems by identifying currently active evolutionary niches (CAN) using occurrence-based activation and augmenting classifiers with time-stamp histories. The authors introduce a lightweight, representation-independent approach that leverages existing XCS data, including a timestamp list L per classifier, to estimate niche counts via CAN and MAN metrics and to track niche composition over time. Through experiments on binary single-step and multi-step problems with non-overlapping and overlapping solutions, the method yields robust niche-count estimates, with CAN and MAN converging toward the optimal niche count after condensation, and reveals overlapping niches that standard snapshots may miss. The approach enables deeper insight into XCS dynamics and offers potential for improved condensation strategies and explainable classifier systems, with extensions to more advanced representations as a promising direction.
Abstract
We present an approach to identify and track the evolution of niches in XCS that can be applied to any XCS model and any problem. It exploits the underlying principles of the evolutionary component of XCS, and therefore, it is independent of the representation used. It also employs information already available in XCS and thus requires minimal modifications to an existing XCS implementation. We present experiments on binary single-step and multi-step problems involving non-overlapping and highly overlapping solutions. We show that our approach can identify and evaluate the number of niches in the population; it also show that it can be used to identify the composition of active niches to as to track their evolution over time, allowing for a more in-depth analysis of XCS behavior.
