NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Price Trackers Inspired by Immune Memory

William O. Wilson, Phil Birkin, Uwe AickelinICARIS 2006

TL;DR

This paper introduces an "immune-inspired" algorithm for identifying price trends in time series data. By mimicking the human immune system's memory mechanisms, the algorithm dynamically evolves "trackers" that learn to recognize recurring patterns, demonstrating promising results in trend detection and efficient memory utilization.

What Problem Does This Paper Address?

Predicting future price movements in financial time series data is a long-standing challenge. While traditional statistical methods have been used, recent years have seen a surge in evolutionary and machine learning techniques like neural networks and genetic algorithms. However, the application of immune-inspired (IS) techniques in this domain has been relatively limited. This paper aims to bridge this gap by proposing an IS approach that leverages the associative learning properties of the immune system to identify and generalize price trends.

Methods

The core of the proposed solution is the Trend Evaluation Algorithm (TEA), which draws inspiration from immune memory theory. The TEA operates with two key components:

  • Short-Term Memory (Tracker Pool - TP): This pool consists of individual "trackers," each represented as a vector of price change estimates. These trackers are dynamically generated and evolve through a process of proliferation and mutation, similar to clonal selection in the immune system. Trackers attempt to "bind" to price movement patterns (antigens) by identifying matching sequences.
  • Long-Term Memory (LT Memory Pool): Successful trackers from the TP that demonstrate a strong ability to identify trends are transferred to the LT memory pool. This pool acts as a generalized memory of recurring trend patterns, allowing the system to leverage past experiences when encountering new data.

Key mechanisms include:

  • Antigen Presentation: Price data is converted into "price movements" and presented as an antigen.
  • Tracker Binding and Affinity: Trackers are evaluated based on their "affinity" to the antigen, measured by the numerical difference in price values. The algorithm seeks the longest matching sequence (MS) between the tracker and the antigen.
  • Stimulation Factor (SF) and Match Length (ML): The SF indicates how many times an MS repeats within the antigen, and ML is the length of the MS. If both exceed a threshold, the tracker is considered to have identified a trend.
  • Proliferation and Mutation: Trackers that meet proliferation criteria are cloned. Mutation occurs in two forms: "Extension" (adding a new price estimate) and "Shortening" (removing a price estimate) to refine trackers.
  • Apoptosis: A percentage of the tracker population is eliminated to maintain stability and prevent excessive growth.

Datasets

The paper uses a simple, artificially constructed dataset for evaluation. This dataset, referred to as "Antigen A," contains 20 fictitious price movements and 8 defined trends (T1-T8). For experimental purposes, Antigen A was split into two subsets: A1 (training data) and A2 (testing data).

Key Insights and Ideas

  • Immune System as a Model for Trend Detection: The paper successfully demonstrates that principles from the immune system, particularly memory formation and clonal selection, can be effectively applied to time series analysis for trend identification.
  • Dynamic Evolution of Trackers: The dynamic proliferation and mutation of trackers allow the system to adapt and evolve its ability to recognize patterns, mirroring the adaptive nature of the immune response.
  • The Power of Long-Term Memory: The LT memory pool plays a crucial role in generalizing learned trends. By retaining successful trackers, the system can leverage past experiences to improve its performance on new, potentially more complex, data.
  • Association Learning: The LT memory pool enables the algorithm to associate previously learned trends with new, similar patterns, leading to improved detection rates for novel trends.
  • Mutation's Importance: The "shortening" mutation mechanism is highlighted as vital for maintaining memory pool efficiency by removing redundant information.

Key Results

The experiments were conducted across four scenarios:

  • Experiment 1 (No Long-Term Memory): The TEA achieved a 55.7% detection rate for trends in a more complex dataset (A2) when no prior knowledge from A1 was carried forward. Memory inefficiency was 3.2%.
  • Experiment 2 (With Long-Term Memory): Incorporating the LT memory pool significantly boosted the detection rate to 80% (a 43.6% improvement). Memory inefficiency dropped to 2.1%. The algorithm showed improved ability to detect more complex trends.
  • Experiment 3 (Scalability): When presented with the complete antigen A (twice the size of A1 or A2), the TEA achieved a high detection rate of 96.3% with a memory inefficiency of 2.0%. This suggests good scalability, though population sizes grew significantly.
  • Experiment 4 (Random Search Comparison): The TEA consistently outperformed a random search in trend detection, even with a comparable number of trackers. For instance, with 4,000 trackers, the TEA achieved a significantly higher detection rate than a random search.

Limitations and Future Work

  • Dataset Size and Complexity: The current study uses a small, artificially generated dataset. Future work should investigate the algorithm's performance on larger, real-world financial time series data.
  • Parameter Sensitivity: The paper acknowledges that parameters were chosen based on educated guesses, and a formal sensitivity analysis is planned for future work.
  • Trend Definition: The definition of a "trend" (requiring at least one repeat) might be too strict for some applications. The paper notes that splitting the antigen can lead to trends not being recognized if they don't meet this criterion within the subset. Future work could explore alternative split points or definitions.
  • Scalability Issues: While Experiment 3 showed good detection rates, the exponential growth in tracker population size with larger antigens suggests potential computational challenges. Further research into optimizing population management and memory pool utilization is needed.
  • Exploration of Mutation Strategies: While shortening mutation was found to be vital, further exploration of different mutation strategies could yield further improvements.

Summary updated

BibTeX
@inproceedings{wilson2006price,
  author = {William O. Wilson and Phil Birkin and Uwe Aickelin},
  title = {{Price Trackers Inspired by Immune Memory}},
  booktitle = {ICARIS},
  year = {2006},
  url = {https://openreview.net/forum?id=d9GxyDXwYQ},
}
Figure