LLM-ABBA: mining time series via symbolic approximation and large language models
Project description
LLM-ABBA is an software framework designed for performing time series application using Large Language Models (LLMs) based on symbolic representation, as introduced in the paper: LLM-ABBA: Symbolic Time Series Approximation using Large Language Models.
Time series analysis often involves identifying patterns, trends, and structures within sequences of data points. Traditional methods, such as discrete wavelet transforms or symbolic aggregate approximation (SAX), have demonstrated success in converting continuous time series into symbolic representations, facilitating better analysis and compression. However, these methods are often limited in their ability to capture complex and subtle patterns.
LLM-ABBA builds upon these techniques by incorporating the power of large language models, which have been shown to excel in pattern recognition and sequence prediction tasks. By applying LLMs to symbolic time series representation, LLM-ABBA is able to automatically discover rich, meaningful representations of time series data. This approach offers several advantages:
Higher accuracy and compression: LLM-ABBA achieves better symbolic representations by leveraging LLMs’ ability to understand and generate sequences, resulting in higher data compression and more accurate representation of underlying patterns.
Adaptability: The use of LLMs enables the framework to adapt to various types of time series data, allowing for robust performance across different domains such as finance, healthcare, and environmental science.
Scalability: LLM-ABBA is designed to efficiently handle large-scale time series datasets, making it suitable for both small and big data applications.
Automatic feature discovery: By harnessing the power of LLMs, LLM-ABBA can discover novel features and patterns in time series data that traditional symbolic approaches might miss.
In summary, LLM-ABBA represents a significant advancement in symbolic time series analysis, combining the power of modern machine learning techniques with established methods to offer enhanced compression, pattern recognition, and interpretability.
Key Features
Symbolic Time Series Approximation: Converts time series data into symbolic representations.
LLM-Powered Encoding: Utilizes LLMs to enhance compression and pattern discovery.
Efficient and Scalable: Designed to work with large-scale time series datasets.
Flexible Integration: Compatible with various machine learning and statistical analysis workflows.
Installation
LLM-ABBA can be installed via pip:
pip install llm-abba
Usage
Here is a simple example of how to use LLM-ABBA:
from llm_abba import ABBA
ts = [1.2, 1.4, 1.3, 1.8, 2.2, 2.4, 2.1]
symbolic_representation = ABBA.encode(ts)
print("Symbolic Representation:", symbolic_representation)
For more details, please refer to the documentation.
Contributing
We welcome contributions! If you’d like to improve LLM-ABBA, please follow these steps:
Fork the repository.
Create a new branch for your feature or bugfix.
Submit a pull request.
License
LLM-ABBA is released under the MIT License.
Contact
For questions or feedback, please reach out via GitHub issues or contact the authors of the paper.
References
[1]Carson, E., Chen, X., and Kang, C., “LLM-ABBA: Understanding time series via symbolic approximation”, arXiv e-prints, arXiv:2411.18506, 2024. doi:10.48550/arXiv.2411.18506.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file llmabba-0.0.2.tar.gz.
File metadata
- Download URL: llmabba-0.0.2.tar.gz
- Upload date:
- Size: 35.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c27c673616bae6c074a72f00c16c5d477198bad813f7db0c9b1d9c69e253a34
|
|
| MD5 |
b33cfed03899d5735cb7f7dc745e5871
|
|
| BLAKE2b-256 |
8280ff19c0168d552a3c3d33d046a29465d86de6e117a97e4e240e74fa0d08f3
|