Abstract
Learning from non-stationary data requires methods that are able to deal with a continuous stream of data instances, possibly of infinite size, where the class distributions are potentially drifting over time. For handling such datasets, we are proposing a new method that incrementally creates and adapts a network of prototypes for classifying complex data received in an online fashion. The algorithm includes both an accuracy-based and time-based forgetting mechanisms that ensure that the model size does not grow indefinitely with large datasets. We have performed tests on seven benchmarking datasets for comparing our proposal with several approaches found in the literature, including ensemble algorithms associated to two different base classifiers. Performances obtained show that our algorithm is comparable to the best of the ensemble classifiers in terms of accuracy/time trade-off. Moreover, our approach appears to have significant advantages for dealing with data that has a complex, non-linearly separable topology.
Introduction
Real-world data streams are rarely static. They often exhibit "concept drift," where underlying patterns and class boundaries shift over time. Traditional batch learning models, which assume a fixed dataset, are ill-suited for these environments. To effectively handle non-stationary data, an algorithm must process samples sequentially in a single pass, provide real-time predictions, and adhere to strict constraints: processing time per sample must remain constant (time invariance), and memory usage must not grow indefinitely (space invariance).
Existing solutions often rely on complex ensemble methods. While powerful, these can be computationally expensive and may struggle to capture highly non-linear, complex data topologies. This paper introduces the Growing Prototype Network Classifier (GPNC), designed to address these challenges through a dynamic, graph-based approach.
The GPNC Algorithm
GPNC is an incremental, nearest-neighbor-based algorithm that maintains a network of labeled "prototypes" rather than storing raw historical data. The algorithm operates through three primary mechanisms:
- Growth: When a new data point arrives, if it falls outside the "influence window" of existing prototypes, it is added as a new prototype.
- Adaptation: Prototypes are dynamically adjusted using velocity and acceleration equations inspired by Particle Swarm Optimization (PSO). They are "pulled" toward similar data points and "pushed" away from different classes.
- Forgetting: This is the critical mechanism for ensuring space invariance. Each prototype has a fitness score that increases with correct classifications and decreases with errors. A time-based decay factor ($\delta$) constantly erodes this fitness. If a prototype's fitness falls below a specific threshold, it is pruned from the network.
As shown in the figure above, without decay ($\delta=0$), the number of prototypes grows linearly with the data stream, eventually exhausting memory. Implementing a small decay factor (e.g., $\delta=0.01$) allows the network size to stabilize, ensuring the model remains computationally efficient over time.
Experimental Evaluation
GPNC was evaluated against seven benchmarking datasets, including artificial sets like SEA Concepts (linear drift) and Checkerboard (complex non-linear drift), as well as real-world datasets like Nebraska Weather and elec2.
Results and Discussion
The results demonstrate that GPNC offers an exceptional accuracy-to-speed trade-off. It particularly excels in datasets with complex topologies. On the Checkerboard datasets, GPNC achieved accuracies of ~82-83%, significantly outperforming state-of-the-art ensemble methods like Boosting with Hoeffding Trees, which peaked at ~75%.
On standard datasets like SEA and Weather, GPNC remained highly competitive with ensemble methods while maintaining much faster execution times. For instance, with $\delta=0.01$, GPNC processed the SEA dataset in 19.56 seconds, whereas complex ensembles like ONSBOOST required over 112 seconds. This efficiency stems from the pruning mechanism, which reduced the SEA prototype count from over 1,500 to just 35 with minimal impact on accuracy.
Conclusion
GPNC provides a robust framework for learning from non-stationary streams by combining topological adaptation with efficient forgetting mechanisms. Its ability to physically morph its network to match data shapes makes it superior for complex, non-linear distributions. Future work will focus on making parameters like the decay factor ($\delta$) self-adaptive to further reduce the need for manual tuning in varying stream conditions.
Summary updated