scieee AI-readable full text Open interactive document viewer

Forecasting storage onboarding in FILECOIN network: Unveiling the state-of-art techniques to create tailored time-series forecasting solutions

Souza, Gabriel Felipe Martins de

Abstract

The challenge of forecasting Storage Onboarding within the dynamic Filecoin Network ecosystem is at the heart of this research. Anticipating storage providers supply amidst a complex interplay of market demands, technological shifts, and regulatory changes shapes a compelling problem. This study focuses on a multifaceted approach to this challenge. Drawing insights from a comprehensive literature review encompassing foundational time series analyses, advanced machine learning methodologies, and contemporary forecasting techniques, the research navigates the complexities inherent in Storage Onboarding. Employing the CRISP-DM framework, the study meticulously delves into Data Understanding, Preparation, Modeling, and Evaluation phases. Leveraging datasets sourced from Spacescope and Yahoo Finance APIs, the research scrutinizes various model performances, including Linear Regression, SARIMAX, Exponential Smoothing, LSTM, and Ensemble Deep Learning. The results highlight the effectiveness of LSTMand Ensemble models for forecasting complex time series. In contrast, Linear Regression and Exponential Smoothing emerge as proficient tools for variables with a linear growth pattern. Beyond model evaluations, the study underscores the importance of methodologies aimed at noise reduction and robust evaluation methods to bolster forecasting precision, as well as to align the forecasting tasks with specific models. This research equips engineers and cryptoeconomy practitioners with essential tools to navigate the intricacies of storage provisioning. It might contribute substantially to optimizing storage allocation, enhancing decision-making frameworks, and fostering robust storage strategies, thereby advancing the resilience and effectiveness of the Filecoin Network, as well as aligning forecasts with evolving demands to meeting user storage needs effectively.

Full text

Master Degree Program in Data Science and Advanced Analy/cs FORECASTING STORAGE ONBOARDING IN FILECOIN NETWORK Unveiling the state-of-art techniques to create tailored 9me-series forecas9ng solu9ons Gabriel Felipe Mar9ns de Souza Master Thesis presented as par9al requirement for obtaining a Master’s Degree in Data Science and Advanced Analy9cs NOVA Informa/on Management School Ins/tuto Superior de EstaHs/ca e Gestão de Informação Universidade Nova de Lisboa MDSAA NOVA Informa/on Management School Ins/tuto Superior de EstaHs/ca e Gestão de Informação Universidade Nova de Lisboa FORECASTING STORAGE ONBOARDING IN FILECOIN NETWORK Unveiling the state-of-art techniques to create tailored 9me-series forecas9ng solu9ons by Gabriel Felipe Mar9ns de Souza Master Thesis presented as par9al requirement for obtaining the Master’s degree in Data Science and Advanced Analy9cs, with a specializa9on in Business Analy9cs Supervised by Roberto Henriques, Ph.D., Associated Professor at Nova IMS Maria Inês, Ph.D., Alumni at Nova IMS November, 2023 Forecasting Storage Onboarding In Filecoin Network Unveiling the state-of-art techniques to create tailored time-series forecasting solutions Copyright ©Gabriel Felipe Martins de Souza, NOVA Information Management School, NOVA University Lisbon. The NOVA Information Management School and the NOVA University Lisbon have the right, perpetual and without geographical boundaries, to file and publish this dissertation through printed copies reproduced on paper or on digital form, or by any other means known or that may be invented, and to disseminate through scientific repositories and admit its copying and distribution for non-commercial, educational or research purposes, as long as credit is given to the author and editor. This document was created with the (pdf/Xe/Lua)L A T E X processor and the NOVAthesis template (v6.10.10) (Lourenço, 2021). Dedicatory Firstly, I express my gratitude to God for life and for the opportunity to achieve another milestone in my academic journey, pursuing a master’s degree. I would like to extend a special thank you to my wife and partner for life, Camila Carelli, whose support and trust were fundamental pillars throughout each challenging stage of this journey. To my family, I am grateful for their constant inspiration and example of perseverance. To the esteemed team of professors at Nova IMS, my sincere appreciation for the valuable contribution in knowledge, essential for the practical application in my career in Data Science and Analytics. Additionally, I express my gratitude to my master thesis supervisor, Maria Silva, whose partnership and proposed challenges were essential for my academic growth, encouraging me to overcome boundaries and making this work genuinely significant for the academic community. A������� The challenge of forecasting Storage Onboarding within the dynamic Filecoin Network ecosystem is at the heart of this research. Anticipating storage providers supply amidst a complex interplay of market demands, technological shifts, and regulatory changes shapes a compelling problem. This study focuses on a multifaceted approach to this challenge. Drawing insights from a comprehensive literature review encompassing foundational time series analyses, advanced machine learning methodologies, and contemporary forecasting techniques, the research navigates the complexities inherent in Storage Onboarding. Employing the CRISP-DM framework, the study meticulously delves into Data Understanding, Preparation, Modeling, and Evaluation phases. Leveraging datasets sourced from Spacescope and Yahoo Finance APIs, the research scrutinizes various model performances, including Linear Regression, SARIMAX, Exponential Smoothing, LSTM, and Ensemble Deep Learning. The results highlight the effectiveness of LSTM and Ensemble models for forecasting complex time series. In contrast, Linear Regression and Exponential Smoothing emerge as proficient tools for variables with a lineargrowth pattern. Beyond model evaluations, the study underscores the importance of methodologies aimed at noise reduction and robust evaluation methods to bolster forecasting precision, as well as to align the forecasting tasks with specific models. This research equipsengineers andcryptoeconomy practitioners with essentialtools to navigate the intricacies of storage provisioning. It might contribute substantially to optimizing storage allocation, enhancing decision-making frameworks, and fostering robust storage strategies, thereby advancing the resilience and effectiveness of the Filecoin Network, as well as aligning forecasts with evolving demands to meeting user storage needs effectively. Keywords: Filecoin, Storage Onboarding,, Time Series Forecasting, Machine Learning, Deep Learning, Ensemble Methods, Storage Providers, Decentralized Storage Network vii R����� O desafio de prever Storage Onboarding no dinâmico ecossistema da Filecoin é o cerne desta pesquisa. Antecipar o fornecimento de provedores de armazenamento em meio a uma complexa interação de demandas de mercado, mudanças tecnológicas e regulatórias configura um problema instigante. Este estudo foca em uma abordagem multifacetada para este desafio. À partir de uma revisão da literatura que engloba dos fundamentos até técnicas avançadas de previsão de séries temporais, a pesquisa navega pelas complexidades inerentes ao Storage Onboarding. Partindo do framework CRISP-DM, o estudo adentra nas fases de Entendimento dos Dados, Preparação, Modelagem e Avaliação. Utilizando conjuntos de dados provenientes das APIs Spacescope e do Yahoo Finance, a pesquisa examina o desempenho de diversos modelos, incluindo Regressão Linear, SARIMAX, Exponential Smoothing, LSTM e Ensemble Deep Learning. Os resultados demonstram a eficácia de LSTM e Ensemble Deep Learning para previsão de séries temporais complexas. Por outro lado, Regressão Linear e Exponential Smoothing se mostram mais adequadas para variáveis com padrão de crescimento linear. O estudo também enfatiza a importância de metodologias voltadas à redução de ruídos e métodos de performance estimation para reforçar a precisão da previsão, bem como de alinhar tarefas de previsão de séries temporais com modelos específicos. Esta pesquisa equipa engenheiros e praticantes da criptoeconomia com ferramentas essenciais para navegar pelas complexidades da provisão de armazenamento. Além disso,espera-se que os insights produzidos nesse estudo, contribuam substancialmente paraotimizaralocaçõesde armazenamento,aprimorardetomadade decisão efomentar estratégias robustas de armazenamento,avançando assim a resiliência e eficácia da rede Filecoin, alinhando previsões com demandas em evolução para atender efetivamente às necessidades de armazenamento de dados dos usuários. Palavras-chave: Filecoin, Storage Onboarding, Previsão de Séries Temporais, Aprendizado de Máquina, Deep Learning, Métodos de Ensemble, Provedores de Armazenamento, Rede de Armazenamento Descentralizada ix A������� ACF Autocorrelation Function (pp. 27,28,48) ANN Artificial Neural Network (pp. 8,11,12) API Application Programming Interface (pp. 19,20,48) AR Autoregressive (pp. 7,12,30) ARIMA Autoregressive Integrated Moving Average (pp. 5,7–9,11–13,30,31,47) ARMA Autoregressive Moving Average (pp. 11,12) CC Capacity Commitments (p. 3) CEC Clean Energy Community (p. 12) CNN Convolutional Neural Networks (pp. 8,10,11,14,34,42,43,45) CPU Central Processing Unit (pp. 7,12) CRISP-DM Cross Industry Standard Process for Data Mining (pp. 17,48) DBN Deep Belief Networks (pp. 8,11) ESN Echo State Networks (p. 8) ETS Error Trend Seasonal (pp. 11,12) FIL Filecoin (p. 2) FIL+ Filecoin Plus (pp. 4,5,20–22,28,41) FLS Fuzzy Logic Systems (pp. 8,10) GBM Gradient Boosting Machines (pp. 8,10) GRU Gated Recurrent Units (pp. 8,10) HOS Higher Order Statistics (pp. 11,12) IPFS InterPlanetary File System (p. 2) xvii KNN K-Nearest Neighbors (pp. 8,10) LP Norm Larch Prover Normalization (p. 9) LSTM Long Short-term Memory (pp. 5,8,10–14,32–34,42–45,47,48) MA Moving Average (pp. 7,8,12,28,30) MAE Mean Absolute Error (pp. 13,14,24) MAPE Mean Absolute Percentage Error (pp. 13,14,35,37,43–45) ML Machine Learning (pp. 7–10,14,47) MSE Mean Squared Error (pp. 13,14,31,35,42) PACF Partial Autocorrelation Function (pp. 27,28,48) PCA Principal Component Analysis (p. 11) PSO Particle Swarm Optimization (pp. 8,10) QAP Quality Adjusted Power (pp. xiii,3,5,19,21,22,28) RBP Raw Byte Power (pp. xiii,3,5,19,22,28) RF Random Forest (p. 10) RMSE Root Mean Squared Error (pp. 13,14,35,37,43–45) RNN Recurrent Neural Networks (pp. 8,10,32) SARIMA Seasonal Autoregressive Integrated Moving Average (pp. 8,9) SARIMAX Seasonal Autoregressive Integrated Moving Average With Exogenous Factors (pp. 30–32,42–46,48) SHAP SHapley Additive exPlanations (pp. 40,41,57) sMAPE Symmetric Mean Absolute Percentage Error (pp. 13,14) SPs Storage Providers (p. 3) SVM Support Vector Machines (pp. 8,10) SVR Support Vector Regression (pp. 8,10) VAE Variational Autoencoders (p. 10) xviii 1 I����������� 1.1 Decentralized Storage Network The demand for data storage has been increasing in the last decade, driven by the growth of digital content, new applications, and the need for data analysis and processing. According to Reinsel et al., 2017, the global datasphere will reach 163 zettabytes by 2025, which is more than ten times the 16.1ZB of data generated in 2016. This massive amount of data requires efficient and scalable storage solutions that can meet the requirements of performance, security, availability, and cost. One of the dominant players in the data storage market is the cloud computing industry, with Amazon AWS, Google Cloud and Microsoft Azure leading the way. These providers offer a range of storage options and leverage their economies of scale, technological innovation, and global network to provide reliable, secure, and costeffective storage solutions. But the cloud computing industry also has its challenges and limitations, including centralization of data, dependency on providers, lack of interoperability, and potential risks ofdataoutages. Analyzing howthe Internethaschangedovertime, asdiscussedby DeFilippiandMcCarthy, 2012, itbecomes apparentthe Internet’s growing trendtoward a more centralized architecture, which raises concerns about potential impacts on enduser rights, as well as threats to the privacy and confidentiality of information stored in the Cloud. This is why it is important to explore alternative and complementary storage solutions that can address these challenges and provide more flexibility, autonomy, and diversity to the data storage market. One promising alternative are decentralized storage networks (Benet & Greco, 2017), which are peer-to-peer systems that allow users to store and retrieve data from distributed nodes without relying on a central authority or intermediary. A decentralized storage network can offer some advantages over the cloud computing industry, such as decentralization of data, empowerment of users, interoperability of the system, and resilience of the network. However, it also faces some challenges and trade-offs, such as coordination of nodes, incentivization of participants, verification 1 CHAPTER 1. INTRODUCTION of data, and optimization of resources. One of the leading decentralized storage networks is the Filecoin network, which is the focus of this dissertation. Filecoin was created to address the need for a decentralized storage network that is secure, efficient, and accessible to everyone. The network is built on top of the InterPlanetary File System (IPFS) protocol, which enables users to store and access files in a distributed manner. As depicted in the Filecoin website (Filecoin, 2020), the Network is made up of five main participants: clients, developers, retrieval services, storage miners, and token holders. Each plays a different role to sustain the economic pillars of Filecoin, with storage miners being the most critical in terms of maintaining and updating the blockchain (Figure 1.1). Figure 1.1: Filecoin Network Participants Clients use the network to store and retrieve data. They are the end users of the Filecoin network, and they benefit from the decentralized storage infrastructure that Filecoin provides. Developers build applications that interact with the network. They are responsible forcreating the tools andinterfaces that allow users to interact with the Filecoin network. Retrieval services help users find and access files on the network. They are the middlemen between clients and storage miners, and they play an important role in making the network accessible and efficient. Storage miners, also mentioned as Storage Providers, provide the storage space and resources needed to keep the network running. They are the backbone of the Filecoin network, and they are incentivized to provide reliable and long-term storage to clients. More details are provided in the next section (1.2). Token holders are the investors who hold Filecoin (FIL) tokens, the native currency of the Filecoin network. It is relevant to mention that most of all other participants are also token holders, which reveals the collective engagement and contribution to the growth of the network. 2 1.2. STORAGE ONBOARDING AND FIL+ PROGRAM 1.2 Storage Onboarding and FIL+ program Storage Onboarding is a fundamental process that allows participants to integrate their hardware into the decentralized storage infrastructure. In this context, Storage Providers, also known as SPs, store data on behalf of clients in fixed-size blocks of data called sectors. These sectors serve as the basic unit for storage operations in Filecoin. The initiation of new sectors involves Storage Providers (SPs) contributing storage power, also referred as RBP to the network. RBP stands for the total raw byte capacity that SPs make available on behalf of the network whether via Capacity Commitments (CC) or storage deals (client data). SPs are incentivized by the Filecoin network to store verified deals. QAP refers to the storage power earned by a storage provider from storing its sectors on the Filecoin network. It is calculated by multiplying the storage power earned from a storage deal by a quality adjustment multiplier, which is set at 10x for verified deals at the protocol level, and in this case the storage provider will earn 10x more block rewards for the same capacity made available to the network, if that capacity is storing verified deals. On the other hand, if a storage provider does not find any available deal proposals appealing, they can alternatively make a CC, filling a sector with arbitrary or empty data, rather than with verified client data. Maintaining this sector allows the SPs to demonstrate that they are reserving space on behalf of the network. SPs earn revenue through various mechanisms, including storage deals initiated by clients seeking to store their data on the network. The payment for successful storage deals is typically made in FIL, the native Cryptocurrency of Filecoin. Additionally, storage providers are subject to collateral requirements, where they must lock a certain amount of FIL tokens as collateral to participate in the network. This collateral serves as a security measure, ensuring that providers adhere to the network’s protocols and fulfill their storage commitments. The combination of storage deals and collateral mechanisms forms the economic foundation for incentivizing SPs within the Filecoin network. New storage is continually integrated in the network, while existing storage might be terminated or expired, leading to fluctuations in the total storage capacity. Furthermore, SPs must make daily decisions regarding the number of sectors they add and the commitment duration for each sector. Presently, providers can commit sectors for periods ranging from 6 months to 1.5 years, making it essential to forecast both the quantity and duration of these onboarded sectors. Accurate forecasting of storage onboarding holds immense value for the Filecoin community and the broader cryptoeconomy industry. It plays a role in ensuring that the network consistently possesses sufficient capacity to meet user demands while 3 CHAPTER 1. INTRODUCTION optimizing resource allocation among storage providers. However, forecasting storage onboarding is a complex challenge, contingent on factors like market conditions, network growth, user behavior, and technological advancements. However, it remains a fundamental element in ensuring Filecoin’s ongoing success and efficiency as a decentralized data storage solution. Within the realm of Filecoin Network, this global blockchain-based marketplace for storage solutions, there is also a crucial and innovative component, the Filecoin Plus (FIL+), often abbreviated as FIL+. At its core, FIL+ addresses a fundamental challenge in distinguishing genuine, valuable data from randomly generated content within a permissionless and pseudonymous network. It was introduced in response to a demand for increased incentives. This allowed storage providers to maximize their earnings by storing actual and verified data, rather than adding empty storage. In addition, as per Galen, 2023 in his Medium article, this mechanism incorporates an enhanced layer of social trust, augmenting the network’s technical infrastructure. FIL+ grants a significant advantage to miners storing deals from notarized clients. These miners receive a remarkable tenfold increase in storage power, translating directly into a tenfold boost in their share of the network’s block rewards. This 10x incentivization dynamic motivates miners to prioritize FIL+ deals, significantly amplifying their contributions to the network and promoting its growth. This system ensures that the network’s resources are allocated efficiently and that valuable data finds a secure and reliable home. By empowering miners and clients, FIL+ plays a pivotal role in shaping the Filecoin Network into a robust, decentralized, and trusted marketplace for data storage. It represents an important step towards building a community-driven ecosystem that encourages meaningful contributions and aligns the incentives of all participants. The incentive has demonstrated remarkable effectiveness in expanding data onboarding. Over the past year, the proportion of FIL+ data onboarding has increased from less than 1% of raw byte power to approximately 90% as of August 20, 2023. The Figure 1.2, as depicted in Karra, 2023, visually encapsulates this substantial growth. 1.3 Research Questions In complement to the insights provided earlier on Storage Onboarding and FIL+, another important concept within the Filecoin Network is the FIL+ Rate. The FIL+ Rate represents the percentage of onboarded storage containing FIL+ deals. It is calculated using the equation FIL+ Rate = (QAP/RBP - 1)/9. 4 1.3. RESEARCH QUESTIONS Figure 1.2: Fig.A) Growth in the data storage through Filecoin Plus, as a proportion of raw-byte power onboarding - Fig.B) The expected terminal value of the Filecoin Plus proportion based on current trends is 92% median with [84, 97]% Q10 and Q90 quantiles The goal of this research is to evaluate various Time Series and Machine Learning techniques, identifying the most accurate methods for forecasting RBP and FIL+ Rate. Accurate RBP and FIL+ Rate forecasts are crucial, since it allows participants to measure the storage capacity of the network over time. In addition, both metrics can derive QAP, which is important for monitoring the network from a tokenomics perspective. The primary focus will be generating daily forecasts, providing timely and valuable insights for network participants. At the end, this work will allow us to answer the following questions: 1. Does time-series forecasting methods work for predicting Storage Onboarding in Filecoin? 2. What are the most effective techniques to forecast Storage Onboarding in a realworld scenario? In order to solve these questions, a review of existing techniques such as time series and machine learning models will be done. This work will also compare and contrast the performance of different techniques, such as Autoregressive Integrated Moving Average (ARIMA),Long Short-term Memory (LSTM), and Ensemble methods, in terms of accuracy, scalability, and interpretability. This research intends to provide valuable insights into the dynamics of the Filecoin ecosystem and to contribute to the 5 CHAPTER 1. INTRODUCTION development of more accurate and reliable forecasting models. For a better comprehension of all the work that has been done, this dissertation is structured as follows: Chapter 2 presents the literature review of the related work on time series analysis and machine learning techniques applied to forecasting problems. Chapter 3 describes the methodology of the data collection, data preparation and the framework applied to tackle the problem., as well as, explains the model and the experimental evaluation of the forecasting techniques. Chapter 4 outlines the results and discussions based on the observed techniques applied in the Modeling and Evaluation phase. Chapter 5 concludes the dissertation and summarizes the main findings, besides the further work. 6 2 L��������� R����� Time series analysis and forecasting are essential techniques in the field of statistics and data science, with a wide range of applications across various domains. According to Mahalakshmi et al., 2016, a time series refers to a type of data that represents observations collected over time, where the order of the observations is important. It is used to analyze patterns and trends in historical data. On the other hand, forecasting techniques are methods used to predict future values based on the patterns and trends observed in the time series data . These techniques involve the application of various models, algorithms, and optimization techniques to make accurate predictions. The importance of time series analysis and forecasting lies in its ability to help organizations and individuals make informed decisions. By understanding past trends and predicting future values, businesses can optimize their operations, allocate resources efficiently, and identify potential risks and opportunities. Time series forecasting has applications in numerous areas, including finance (stock market predictions), economics (macroeconomic indicators), marketing (sales forecasting), healthcare (disease prevalence), and environmental science (weather forecasting). Historically, time series analysis dates back to the early 20th century, with the work of Yule, 1926, and the one present in Walker, 1931, both introducing and discussing Autoregressive (AR) and Moving Average (MA) models. Later, in the 1970s, George Box and Gwilym Jenkins developed the Box-Jenkins methodology (Geurts, 1977), which led to the popular ARIMA model. Over time, various other techniques have been introduced, such as exponential smoothing, state-space models, and more recently, Machine Learning (ML) and deep learning approaches. In order to bring a solid foundation for the development of this work, the Literature Review was based in two distinct research perspectives. The first approach was focused on finding academic surveys that could create a background of Time Series and ML techniques applied to general forecasting problems. The second approach is intended to analyze references on related resource forecast works, aimed to find similar problems in other domains, such as energy, Central Processing Unit (CPU) usage, power consumption or data center usage. By combining these two perspectives, it is expected 7 CHAPTER 2. LITERATURE REVIEW to provide a comprehensive overview of the state-of-the-art in forecasting models that can be helpful for the Filecoin Storage Onboarding problem. 2.1 Times Series Survey After a meticulous investigation of dozens of works focused on forecasting tasks, this subsection compiles the key studies that underpin this master’s thesis. These studies can be categorized into three groups: the first serves as a foundation for time series analysis, the second introduces a ML approach to time series forecasting, and the last represents an advancement in more sophisticated Deep Learning techniques. Each group asdescribedin the followingsub-sections, presents methods andapproaches that may be more effective in handling various types of data and time series configurations. Thetable2.1illustratesasummaryofhowthesurveyisdistributedintodifferentgroups. Survey Group Main techniques Referenced literature Foundations of Time Series Analysis Smoothing Methods, Bayesian forecasting, ARIMA, Seasonal Autoregressive Integrated Moving Average (SARIMA), Spatial Time Series, MA, Markov, Delphi Method, Spectral Analysis Brockwell and Davis, 2002, Granger and Newbold, 1985, Fakhrazari and Vakilzadian, 2017, Esling and Agon, 2012, Mahalakshmi et al., 2016, Geurts, 1977, Makridakis and Wheelwright, 1982, Granger, 1979, Shim, 2000 ML Applications in Time Series Forecasting Support Vector Regression (SVR), Linear Regression, Random Forest, Decision Tree, Gradient Boosting Machines (GBM),Support Vector Machines (SVM),K-Nearest Neighbors (KNN),Fuzzy Logic Systems (FLS),Particle Swarm Optimization (PSO), Ensemble methods Mahalakshmi et al., 2016 , Nyein Naing and Htike, 2015, Mishra et al., 2017, Masini et al., 2021, Hendikawati et al., 2020 Deep Learning LSTM,Convolutional Neural Networks (CNN),Artificial Neural Network (ANN),Echo State Networks (ESN),Deep BeliefNetworks(DBN),Gated Recurrent Units (GRU),Recurrent Neural Networks (RNN) Lim and Zohren, 2021, Torres et al., 2021, Livieris et al., 2020, Mehtab et al., 2020,Bandara et al., 2020 Table 2.1: Time Series Survey Overview 8 2.4. TAKEAWAYS FROM RELATED WORK of the forecasting models, allowing for informed decision-making and continuous improvement in the field of time series forecasting, hence they were also selected to handle the performance evaluation task in the context of this study. 15 3 M���������� In order to get a clear and efficient structure to design and evaluate forecasting models for the Filecoin Storage Onboarding, the Cross Industry Standard Process for Data Mining (CRISP-DM) framework is going to be used as the methodology, as it provides a structured and comprehensive approach to guide data mining practitioners through the entire project lifecycle (Martínez-Plumed et al., 2021). The CRISP-DM consists of six phases: Business Understanding, Data Understanding, Data Preparation, Modeling, Evaluation, and Deployment. The framework (Figure 3.1) is described in detail below, along with the specific steps taken in this research. The Deployment phase, a step within the CRISP-DM framework, is predominantly theoretical in this study. It holds a role in assessing the practical viability of the most effective forecasting model. Despite being conducted in a theoretical context, this phase involves practically applying the identified model to make forecasts for future storage onboarding within the Filecoin network. This process entails continuous monitoring of the model’s performance over time, enabling timely updates and adjustments to uphold its accuracy and reliability. While the Deployment phase is crucial for realworld implementation, it is important to note that this study’s primary objective lies in streamlining diverse modeling approaches to evaluate the best techniques for forecasting storage onboarding. Consequently, the practical deployment, in terms of physically implementing the model, is beyond the scope of this research. 3.1 Business Understanding The first phase of the CRISP-DM framework is named Business Understanding. It focuses on comprehending the business problem at hand and defining the objectives of the research. The primary business problem addressed in this study is the forecasting of Storage Onboarding in the Filecoin network, which serves as a critical metric for assessing the success and growth of the Filecoin ecosystem. 17 CHAPTER 3. METHODOLOGY Figure 3.1: CRISP-DM Diagram The objective of this research is to develop accurate and reliable forecasting models that provide valuable insights to various stakeholders within the Filecoin community. These models can assist Filecoin participants in planning their operations effectively, while also supporting cryptoeconomists andengineers working on the Filecoin protocol in designing improved economic policies. As exposed in the Research Questions section, the end goal is to evaluate and compare various Time Series and Machine Learning techniques to determine the most accurate and precise methods for forecasting daily delta_RBP and fil_plus_rate. By achieving this goal, this work aims to contribute to the advancement of forecasting capabilities in the Filecoin ecosystem, enabling stakeholders to make informed decisions based on reliable predictions. 3.2 Data Understanding The Data Understanding phase helps to translate the data collected into useful insights. In this case, the data consists of historical storage onboarding data from the Filecoin network, as well as other relevant data such as the provider storage power, 18 3.2. DATA UNDERSTANDING which can be classified as raw and qualified storage power. The data understanding phase involves exploring the data, identifying potential data quality issues, and understanding the relationships between the different variables. In this project, data was sourced from the Application Programming Interface (API) Spacescope, 2023, which provides access to real-time and historical data from Filecoin’s open network. The data collected covers daily storage details from various providers over nearly two years, from January 2021 to February 2023. This extensive time frame allows us to thoroughly analyze time series data and test various prediction methods. The data schema ( Figure 3.2) includes specific information such as request_id,stat_date, miner_id,raw_byte_power, and quality_adj_power, each representing a unique aspect of the storage transactions. The request_id serves as a unique identifier for each transaction, whilethe stat_date indicatesthedayofthe transaction. Theminer_id is a uniqueidentifier for the storage provider involved in the transaction. The raw_byte_power attribute represents the amount of storage power in bytes (RBP), and the quality_adj_power attribute represents the quality-adjusted storage power in bytes (QAP). Figure 3.2: Storage Provider Data Schema from API Spacescope In addition to the storage power data, information regarding FIL token (Figure 3.3) was also collected using the Yahoo Finance API. Specifically, open price and traded volume for the same period was sourced, given it could bring insights into how market dynamics can impact the network. Figure 3.3: FIL Token data from Yahoo Finance API The initial steps of data understanding and data mining were conducted, encompassing essential procedures such as assessing the presence of null values, examining the general characteristics of the datasets, including data types and column lengths, 19 CHAPTER 3. METHODOLOGY exploring dataset distribution and key statistics, identifying duplicate records, and detecting any potential anomalies. Throughout this analysis, no significant issues were found, except for the identification of a few outliers. However, a comprehensive exploration andtreatment of these outliers was deferredto the data preparation phase, where appropriate techniques and strategies will be employed to handle them effectively. To a broader understanding of the notebooks and all the data used in this study, you can access the web page https://github.com/gabriel-martins-souza/projects and check out the data collection notebook Filecoin Data Collection.ipynb and the main notebook (Petabytes) Forecasting Storage Onboarding in Filecoin Network.ipynb, all available on this public repository. 3.3 Data Preparation During the Data Preparation phase, the dataset was prepared to be suitable for the subsequent modeling phase. The first step involved creating a copy of the original dataset to preserve the integrity of the raw data. Irrelevant columns, including request_id,code, and message, were then removed from the dataset. This ensured that only the relevant information for the analysis remained. To facilitate interpretation and analysis, the storage power columns, raw_byte_power and quality_adj_power, were converted from bytes to petabytes. This unit conversion resulted in new columns named peta_raw_power and peta_quality_power. To provide a comprehensive view of the storage power over time, the data was aggregated by day, using the stat_date column. This aggregation resulted in a new DataFrame, df_storage, which included metrics such as the number of unique miners, total raw byte power, total quality-adjusted power, and total raw byte power in terabytes, all originated from the API Spacescope. The same treatments were performed to the dataset from the Yahoo Finance API, named as fil_prep, on which only the columns date,open_price and volume were kept. The date column in both the df_storage and fil_prep DataFrames was formatted to ensure consistency and to remove the timestamp component, leaving only the date portion, and at the end, the fil_prep DataFrame, containing Filecoin’s stock information, was merged with the df_storage DataFrame based on the common date column, resulting on a new dataset named df_merged. The FIL+ Rate, was calculated and added as a new column, fil_plus_rate, into the df_merged. To capture the daily variations in storage power, columns such as delta_RBP, delta_QAP,delta_fil_plus_rate, and delta_miners were created in the df_merged DataFrame. These columns represented the differences between consecutive values and provided 20 3.4. DATA VISUALIZATION AND TIME SERIES UNDERSTANDING insights into the daily changes in storage metrics. By performing these steps, the dataset was transformed into a structured and meaningful format as shown in Figure 3.4, ensuring that it was ready for further analysis and modeling. The data preparation phase allowed for data cleaning, feature engineering, and integration of different data sources. Figure 3.4: Dataframe df_merged To ensure equitable contributions of input features with varying scales to model training, this study incorporated Normalization and Scaling methods into each model’s training pipeline. As outlined in the paper by Asesh, 2021, min-max normalization effectively removes such biases by shifting values to a consistent range between 0 and 1. In this study, the min-max scaling method is applied using the MinMaxScaler module from the popular Scikit-learn library in Python, as presented in Pedregosa et al., 2011. 3.4 Data Visualization and Time Series Understanding The Data Visualization phase aimed to bring a deeper understanding of the time series data and explore the relationships between different variables. Several visualizations were performed to analyze key metrics and observe trends over time. The analysis of cummulative storage power revealed interesting patterns. Since February 2022, the cumulative QAP has noticeably gained a larger share within the storage network (Figure 3.5). This shift is likely linked to the increasing emphasis on FIL+ (see the growth trend of FIL+ rate in Figure 3.6), reflecting the efforts of Filecoin’s engineers and participants to make data onboarding easier, hence to align with Filecoin’s mission of storing humanity’s most important information. The analysis of FIL Token provided insights into the market dynamics and their potential impact on the network. As illustrated in Figure 3.7, the token price reached a peak of nearly $200 USD in early 2021 but has since experienced a significant decline, hovering around $5 USD. Similarly, the traded volume exhibited a peak in early 2021 but has remained relatively low and stable in recent periods. In addition to macroeconomic factors, rising interest rates, and less capital for risky investments, according to 21 CHAPTER 3. METHODOLOGY Figure 3.5: Cummulative RBP and QAP Over Time Figure 3.6: Filecoin Fil+ Rate Over Time Coinmonks, 2022, this volatility in the FIL Token may be also attributed to Filecoin’s initial stages, where engineers and network participants were working to improve the infrastructure as well as facilitate the data onboarding process. In this context, the introduction of FIL+ helped to address many of the issues related to the network. Although this probably painted an impressive quantitative picture for Filecoin, elevating FIL Token prices, it also resulted in a majority of the active data stored on the network being low-quality and lacking no valuable use cases. High competition, insufficient incentives for Storage Providers, and the significant development of China’s regulatory authorities, who declared all cryptocurrency-related activities illegal in the country in September 2021 (Reuters, 2021), likely contributed to the decline in token prices, and the decline in raw-byte power, reaching their lowest points, which could also be observed in other tokens within the Crypto economy. 22 3.4. DATA VISUALIZATION AND TIME SERIES UNDERSTANDING Figure 3.7: FIL Token Price Over Time The next phase of Data Understanding involved outlier analysis, employing box plots for this purpose. A box plot, also known as a box-and-whisker plot, is a visual representation of data that shows the median, quartiles, and range of a distribution (Cox and Holcomb, 2017). Box plots were used to identify outliers in the numeric variables. These outliers were particularly prevalent in the engineered variables (Figure 3.8), whichcan beattributedtotheircloseproximitytozero andthe scaleofthe variables. Following this, to assess the relationships between variables in the dataset, a correlation matrix was created. According to Macdonald, 2014, a correlation matrix is a type of matrix that shows the correlation coefficients between a set of variables. It is derived from the covariance matrix by standardizing the variables. The correlation coefficient measures the strength and direction of the linear relationship between two variables. The analysis performed (Figure 3.9) confirmed expected relationships between variables. For instance, the FIL Token open_price showed positive correlation with traded_volume and negative correlation with unique_miners,quality_adj_power, raw_byte_power, and fil_plus_rate. To offer further insights, moving averages were employed to facilitate the analysis of time series trends. A Moving Average Analysis is a statistical technique used to smooth out fluctuations or noise in time series data. As described in Zakamulin, 2016, it involves calculating the average of a subset of data points within a defined window, which is then shifted forward one observation at a time. This process generates a new series of averages, which can highlight underlying patterns in the data. In this case, a 10-day window size moving average was created, named Rolling mean trend, as it provided the best perspective between short-term and mid-term 23 CHAPTER 3. METHODOLOGY Figure 3.8: Numeric Variables Box Plots Figure 3.9: Pearson Correlation Matrix trends, within all the window sizes tested. In additional, Upper bound and Lower bound curves were drawn to represent the confidence interval, which in this context was calculated using a combination of the MAE and the standard deviation of the residuals (the differences between the actual and smoothed values). After conducting a moving average analysis on delta_RBP (Figure 3.10), it was observed that the method displayed limited responsiveness to sudden spikes in the 24 3.5. MODELING external factors that can influence the time series in scope. The SARIMAX predictor was implemented using the tstatespace.sarimax method, from the open source Python library Statsmodel, outlined in Durbin and Koopman, 2011. To boost the process of selecting optimal hyperparameters for the SARIMAX model, an automated time series forecasting tool was introduced. The auto_arima is designed to find the best-fitting ARIMA model for a given time series dataset without the need for manual intervention. According to Taylor and Letham, 2018, this technique is particularly useful when dealing with large-scale forecasting tasks where manual selection of models can be impractical. The method employs a heuristic search algorithm to identify the optimal parameters (p, d, q) for the model, ensuring that the chosen model is well-suited for the specific characteristics of the time series data. After applying the auto_arima, the most suitable parameters were determined for the SARIMAX model, considering the time series data provided in this research. Subsequently, the SARIMAX model was built incorporating all the independent variables from the dataset df_model as exogenous features. The model then passed through the test_performance_estimation_methods function, which provided the results to evaluate the estimatorperformance, furtherdetailed in the Results and Discussion section (4). 3.5.3 Exponential Smoothing As outlined in Mahalakshmi et al., 2016, the Exponential Smoothing is a forecasting technique used to analyze and predict time series data by assigning exponentially decreasing weights to past observations. It is based on the assumption that recent data points are more relevant for forecasting than older ones. The technique calculates a weighted average of past observations, with the weights decreasing exponentially as the observations get older. This allows the model to capture both short-term fluctuations and long-term trends in the data. It provides a simple yet effective approach for forecasting time series data. Given its straightforwardness, the Simple Exponential Smoothing model was chosen to forecast the target variables for predicting Storage Onboarding in the Filecoin Network. Unlike other models tested in this study, Exponential Smoothing is a univariate approach, meaning it solely considers the historical values of the target variables, in this case delta_RBP and fil_plus_rate, and does not incorporate any other input variables from the dataset. This technique was employed based on the Python library Statsmodel, also mentioned in Durbin and Koopman, 2011. In this study, the determination of the optimal smoothing parameter, alpha, essential for the Exponential Smoothing models, was accomplished via cross-validation and MSE evaluation. An iterative process was 31 CHAPTER 3. METHODOLOGY devised to explore a range of alpha values, spanning from 0.01 to 100. Once identified, these optimal alpha values were integrated as inputs to develop the final models for each forecasting task, which the results and takeaways will be further explained in the upcoming chapters. 3.5.4 Exponential Smoothing + SARIMAX Incorporating Smoothing methods alongside a secondary estimator has shown substantial effectiveness, as observed in Shen et al., 2019. Smoothing techniques adeptly filter noise from time series data, while complementary models enhance predictive power, ultimately improving forecasting accuracy. In this study, a fusion of Exponential Smoothing and SARIMAX models was employed, strategically combining the strengths of both methods. This approach unfolds in two stages. Firstly, Simple Exponential Smoothing is applied to the original time series, effectivelyeliminating noise andproducing a smoothed representation of the data. Subsequently, the refined time series serves as the primary input for the SARIMAX model. This collaboration enriches the model’s ability to discern the inherent data patterns, as the prior Smoothing step effectively mitigates noise. This approach was performed by integrating the individual techniques outlined in the preceding sub-sections. This enables a comprehensive evaluation of its potential to enhance prediction accuracy on the same time series data. Hence, this approach can potentially lead to improved forecasting performance compared to using either method alone. The additional insights derived from these findings will be extensively discussed in the forthcoming Results and Discussion chapter (section 4), providing valuable guidance in the selection of the most appropriate forecasting model for the Filecoin network storage onboarding scenario. 3.5.5 Long Short Term Memory Neural networks are computational models inspired by the structure of the human brain. They consist of interconnected nodes (neurons) arranged in layers. These networks are trained on data to recognize complex patterns and make predictions or decisions. They excel in tasks like image recognition and natural language processing. As presented in Nyein Naing and Htike, 2015,LSTM is a specialized form of RNN architecture designed explicitly for processing sequences of data. Its unique strength lies in its ability to capture long-term dependencies, a crucial aspect in tasks involving time series data. Unlike conventional feedforward neural networks, which lack a memory of past inputs, LSTM networks utilize a system of gates to determine what 32 3.5. MODELING information to retain or discard at each time step. This enables them to effectively remember and utilize relevant information from earlier points in the sequence. LSTM architectures are equipped with a cell state, which works as a form of memory for the network. This state evolves over time, allowing the network to selectively incorporate or discard information as needed. Furthermore, LSTMs employ three types of gates: the forget gate,input gate, and output gate. Each of these gates plays a specific role in managing the information flow within the cell state. The forget gate determines which information to remove from the cell state, the input gate decides what new information to add, and the output gate selects which information to output based on the current input and the cell state’s memory. Through training, these gates learn which information is most pertinent to retain or discard based on the current input and the prior state. This architecture makes LSTM exceptionally proficient in tasks that demand an understanding of the temporal patterns, a quality particularly valuable in time series forecasting. As illustrated in Agrawal, 2020,GridSearch is a hyperparameter optimization technique implemented in the Scikit-learn library for machine learning. It is used to systematically search for the best combination of hyperparameters for a given algorithm. GridSearch works by defining a grid of hyperparameter values and then exhaustively evaluating the algorithm’s performance for each combination of values in the grid. This allows researchers to find the optimal set of hyperparameters that maximize the algorithm’s performance. This is a simple yet powerful method for hyperparameter optimization and is widely used in practice. To identify the optimal parameter combinations for training the LSTM models in this reseatch, hyperparameter tuning was performed using GridSearchCV, on which an internal cross-validation technique is used to calculate the score for each combination of parameters on the grid. To forecast delta_RBP and fil_plus_rate, the LSTM predictor was trained, encompassing all the independent variables present in the dataset df_model. The model was built based on the library Keras, and the submodule layers, as presented by Ketkar, 2016. The GridSearchCV method facilitated the evaluation of parameters, including neuron count, activation functions (ReLU and tanh), optimizers (Adam and RMSprop), and dropout rates (0.2 and0.5). Ultimately, the model for predicting eachoutput variable was crafted by passing through the performance estimation pipeline, the results of which will be presented and further examined in subsequent sections. 3.5.6 Ensemble Deep Learning Ensemble methods, as elucidated in Livieris et al., 2020, involve a combination of various individual models to enhance predictions or classifications. These models 33 CHAPTER 3. METHODOLOGY are trained independently and their outputs are fused to generate a final estimator with increased performance. This technique is equally applicable to time-series tasks, offering heightened accuracy and robustness by leveraging the diversity of multiple models. The paper underscores that combining ensemble learning with deep learning yields strong, stable, and reliable forecasting models for time-series problems, such as cryptocurrency price prediction, as demonstrated in its study. This sheds light on advanced deep learning models like LSTM, Bi-directional LSTM, and CNN, which have demonstrated remarkable effectiveness in such forecasting challenges. As highlighted in the previously mentioned paper, the CNN is a specialized type of deep learning model well-suited for processing grid-like data, such as images ortime-series sequences. It is composed of multiple layers, including convolutional layers that apply filters to detect patterns, and pooling layers that reduce spatial dimensions. These patterns are learned automatically from the data, enabling the network to recognize features at different levels of abstraction, such as spatial patterns. In accordance with the findings outlined in Livieris et al., 2020, an Ensemble model was employed, incorporating both a LSTM and a CNN model. These two models were selected due to their complementary strengths in time-series forecasting. Similar to the earlier estimators described in this study, the ensemble model was constructed using all the independent variables within the dataset df_model. To mitigate biases and potential discrepancies impacting prediction performance, input variables were standardized using the StandardScaler method from Scikit-learn Python library, as outlined in Asesh, 2021.GridSearchCV was subsequently utilized to determine optimal parameters for both models. The final model, implemented through a custom class called EnsembleModelWrapper, acts as a wrapper for input models, facilitating their collaborative operation in an ensemble. This class is initialized with pre-built LSTM and CNN models, assigning a 50% weight to each. This equal weighting signifies an equitable influence division, underlining the equal significance ofboth models in prediction generation. The training process involves data reshaping followed by a 100-epoch training cycle, where each epoch represents a full pass through the training dataset. Once trained, the ensemble model leverages both LSTM and CNN models for predictions. These individual forecasts are then harmonized, with parity in significance, resulting in a final prediction. Following this, the ensemble model’s performance was evaluated using the established performance estimation function, which will be elaborated upon in the subsequent sections. 34 3.6. EVALUATION 3.6 Evaluation As mentioned in Makridakis and Wheelwright, 1982, Evaluation in forecasting refers to the process of assessing the accuracy and effectiveness of forecasting methods and the forecasting function. It involves analyzing the performance of forecasting models and techniques to determine their reliability and usefulness in predicting future outcomes. Evaluation helps organizations identify the strengths and weaknesses of their forecasting processes, allowing them to make informed decisions based on the forecasted results. In the context of this study, two evaluation metrics have been chosen as the primary evaluation metrics due to their widespread adoption and recognition in time series literature. MAPE, which represents the average percentage difference between the actual and predicted values, providing insights into the forecasting accuracy, and RMSE, which measures the root mean squared difference between actual and predicted values, highlighting the magnitude of errors and their dispersion. Performance Estimation Methods are a crucial aspect of every machine learning project. They serve to assess the predictive model’s capacity to generalize and anticipate its performance on unseen data. Cerqueira et al., 2019 extensively studied various estimation techniques, such as Cross-validation, Out-of-sample (holdout), Prequential and others, evaluating their performance on real-world and synthetic time series. The findings discern clear performance trends influenced by data stationarity. Generally, Cross-validation proves effective forstationary series, while non-stationary ones benefit more from Out-of-sample techniques, particularly the Repeated Holdout approach. This empirical investigation contributes to refining performance evaluation practices in time series forecasting, shedding light to the most effective estimation techniques in the context of this work. To comprehensively assess the forecasting models’ performance for storage onboarding in the Filecoin network, the function test_performance_estimation_methods was developed, incorporating methods outlined in the aforementioned study. This facilitates theseamlessdevelopmentofpipelinesforeachmodel, encompassingbothtraining and performance estimation stages. This function employs five estimation methods: holdout, inverse holdout, cross-validation, modified cross-validation, and repeated holdout. Each method fits the model, predicts test data, and calculates MAPE and MSE scores. The outputs from this performance assessment are presented in a table, and actual vs. predicted values are plotted for intuitive comparison. The function facilitates the interpretation and comprehension of how each model interacts and performs in conjunction withthe various estimation methods, as depictedin Figure 3.16andFigure3.17. 35 CHAPTER 3. METHODOLOGY Figure 3.16: Performance Estimation Function Plots Figure 3.17: Performance Estimation Function Summary Table Leveraging insights from the study in Cerqueira et al., 2019, a comprehensive explanation of each performance estimation method employed, along with a comparative analysis of these approaches can be made. As the first method, the Holdout is a fundamental tool that partitions the dataset into training and testing sets, allocating 80% for training and 20% for testing. This enables the model to learn from historical data and evaluate its predictive power on unseen future data. It maintains the chronological order of observations, providing a reliable assessment of model performance. The Inverse Holdout takes a distinctive approach by allocating a larger portion, precisely 80% of the data, for training, and a smaller unseen subset of 20% for testing. This is particularly useful when a larger training set is imperative to capture patterns in the data. The Holdout and Inverse Holdout represent two sides of the same coin. The former focuses on a balanced training-testing split, while the latter emphasizes a larger training set. The choice between them hinges 36 3.6. EVALUATION on the specific emphasis on either a more extensive learning phase or a robust testing phase. As a third avenue, the Repeated Holdout introduces an element of robustness by conducting the Holdout multiple times. In each iteration, a new random split into training and testing sets is employed. This process averages the MAPE and RMSE values over these iterations, providing a more stable evaluation of model performance. While the Holdout is a single instance evaluation, the Repeated Holdout introduces an element of randomness, offering a more comprehensive view of how the model generalizes to different training-testing scenarios. Moving forward, Time Series Cross-Validation is designed to respect the temporal structure ofthe data. It divides the dataset into ’k’ folds (5 in the context ofthis research), where each fold represents a distinct segment of time. The model is trained ’k’ times, each time on ’k-1’ of the folds and evaluated on the remaining fold. This approach ensures that no future data is included in the training phase, thus preventing data leakage. Cross-Validation stands out for its ability to assess model performance while respecting the chronological order of the data. It provides a robust estimate of how the model generalizes to unseen future data points, making it particularly suitable for time series forecasting tasks. On the other hand, Modified Cross-Validation combines K-Fold Cross-Validation with reordering to overcome temporal dependence. It starts by reordering the data to eliminate underlying temporal patterns. It then divides the reordered data into ’k’ folds and trains and evaluates the model as in traditional Cross- Validation. This process is repeated for multiple reordered iterations, culminating in a comprehensive evaluation of the model’s generalization capabilities. The Modified Cross-Validation addresses the potential bias introduced by temporal patterns in the data. By reordering the data, it disrupts any inherent sequential dependencies, providing an additional layer of scrutiny to model performance. By employing the function for Performance Estimation Methods and comparing the results obtained from different evaluation techniques, this phase facilitates a holistic evaluation of each model’s strengths and limitations. The analysis of MAPE and RMSE scores enables the identification of the most suitable forecasting approach for the storage onboarding problem in the Filecoin network. This selection process ensures that the chosen model aligns seamlessly with the forecasting objectives, ultimately optimizing the accuracy and reliability of predictions. Looking ahead to the next chapter, all model outputs and results will be presented and thoroughly examined. 37 4 R������ ��� D��������� This chapter serves as the bridge between the theoretical foundations laid in the preceding chapters and the actual insights obtained from the Modeling and Evaluation phases. The focus shifts to practical applications, as the outcomes of this research unfold, presenting a holistic overview that encapsulates not only metrics and numerical values but also a broadercomprehension of the predictive capabilities of each examined model in real-world forecasting scenarios. The primary emphasis lies in a feature importance analysis, providing a deepunderstanding on factors that can potentially influence the time series predictions. Then, an overview of the hyperparameter approaches, and the optimal configurations employed to craft each model explored in this research. Lastly, the focus shifts to an assessment of the effectiveness of various estimation methods, combined with different modeling techniques, as well as their ability to predict time series accurately. 4.1 Feature Importance In this study, a comprehensive Feature Importance analysis was conducted to gain deeper insights into the factors that significantly influence the forecasting performance across different models. While traditional feature selection methods were not employed, each model was entrusted to autonomously determine the relevant features for predicting the target variables associated with Storage Onboarding. Placing the Feature Importance analysis within the Results and Discussion section allows for a more integrated and holistic presentation of the findings. This approach was chosen to provide an additional layer of insight into the contribution of individual features to the forecasting task. Feature Importance analysis is an important component in predictive modeling, providing a quantifiable measure of the impact of different features on the outcome 39 CHAPTER 4. RESULTS AND DISCUSSION variable. Petelin, 2023 emphasizes the significance of time-series features in predicting algorithm performance. The methodology outlined in this study explores how various forecasting methods rely on specific features. It underscores that feature importance can vary across different meta-models, highlighting the utility of a model-agnostic feature portfolio. From this study, two notable techniques are extracted, Permutation Importance and SHapley Additive exPlanations (SHAP). These techniques, though distinct, share the ability to assess feature importance in a variety of contexts. They provide nuanced insights into feature contributions and can be used individually or in combination. Permutation Importance systematicallypermutes individual features, gauging their impact on model performance. This method quantifies a feature’s importance by observing how much the model’s performance decreases after its permutation. SHAP employs a game-theoretic foundation to assign feature importance values. It calculates the marginal contribution of each feature across all possible feature combinations. This technique excels in capturing nuanced feature interactions and is particularly valuable to handle complex temporal dependencies. In the context of this study, the aforementioned methods were applied in combination with Linear Regression. Besides its suitability to the respective techniques, the Linear Regression model represents a basic and straightforward method to leverage the feature importance frameworks. In order to ensure equitable contributions of input features, the the min-max scaling method was employed using the MinMaxScaler module from the popular Scikit-learn library in Python. For the delta_RBP variable, both SHAP and Permutation Importance analyses identified two key contributors to the model’s predictions: raw_byte_power,peta_quality_power. Notably, due to the inherent non-linearity of delta_RBP, Permutation Importance might struggle to capture the subtle intricacies within the time series data. As a result, it indicated weaker importance for numerous features. In contrast, SHAP analysis exhibited broader scope of importance not only in the aforementioned features and their variation in different units, but also in delta_QAP,fil_plus_rate and unique_miners. This alignment suggests that SHAP might be better suited for capturing the nuanced patterns within the observed time series data, effectively highlighting the critical features driving the forecasting process. It is also important to mention that the variable shifted_delta_rbp, which represents the previous value for delta_RBP (shift) doesn’t show strong contribution to the prediction of the target variable, contraty to what was expected. In the scope of fil_plus_rate, which exhibited a linear pattern, both feature importance techniques presented similar results, where the shifted_fil_plus_rate, representing the previous value of the target variable, yielded the highest contribution for 40 5 C��������� ��� ������� ���� The landscape of the Filecoin storage onboarding is complex and dynamic, shaped by factors like market demands, technological shifts, and changes in regulation influenced by the government and other entities. An important lever for sustained growth in the Filecoinecosystemliesintheabilitytoanticipateandmeetthestorageneedsofusers. Through the literature review, it was possible to build a solid foundation of Time Series fundamentals and gathervarious studies that configure the state-of-the-art in this field. From a first perspective, the analysis of numerous Time Series surveys revealed three study groups: the first as a foundation for time series analysis, the second introduces a ML approach to time series, and the last represents an advancement in more sophisticated techniques. This review shed light on key authors discussing general time-series forecasting problems and the main techniques used. From a second viewpoint, to deepen the understanding and practical application of forecasting techniques, an analysis of papers addressing tasks in contexts similar to Storage Onboarding, such as energy and data center resources, was conducted. The systematic literature review helped comprehend the importance of adjusting the forecasting technique to the type of time series data. For example, as highlighted by the studies on the paper group Foundations of Time Series Analysis (table 2.1), the application of univariate models like Exponential Smoothing or ARIMA is generally successful in predicting tasks of less complex time series that follow a more linear pattern, such as in fil_plus_rate. On the other hand, as mentioned in the group of papers Wind Power and Energy Demand Forecasting (table 2.2), and in the Deep Learning section literature (table2.1), complex time series with unclear trends, such as in delta_RBP, may be better deciphered when combined with models that can better learn these temporal patterns, such as LSTM or an ensemble of more sophisticated models. Finally, the literature also emphasized the importance of using techniques to remove noise from the data (Shen et al., 2019), combined with other models, to enhance the ability and performance in forecasting tasks, a point also addressed in this study. 47 CHAPTER 5. CONCLUSION AND FURTHER WORK As a framework used in this academic work, the CRISP-DM contributed to an intuitive and orderly development, progressing through the fundamental stages of Data Understanding, Data Preparation, Modeling, and Evaluation. The data, extracted from the APIs Spacescope and Yahoo Finance, were manipulated and transformed (3.3) to serve as a basis for evaluating different forecasting models, focusing on the target variables delta_RBP and fil_plus_rate. Various analyses were conducted, as elucidated in the section 3.4, to gain a broader understanding of the time series in question, such as analyzing the key features over time, outlier analysis through box-plot visualization, and correlation analysis between variables. Additionally, Time Series Decomposition, ACF and PACF analyses, and Dick-Fuller test provided numerous insights into the presence of noises in the data, the non-stationarity of fil_plus_rate, and the weak autocorrelation present in the delta_RBP variable. The models evaluated in this study represent a comprehensive exploration of various forecasting techniques tailored to the unique characteristics of storage onboarding data. Linear Regression, SARIMAX, Exponential Smoothing, LSTM and Ensemble Deep Learning were all scrutinized in the section 3.5 in light of their effectiveness in capturing the complexities of temporal patterns and linear growth. Finally, as a key point applied in the methodology, and mentioned in the Evaluation phase (3.6), the function test_performance_estimation_methods was an essential tool to facilitate agility in the process of creating the models tested here, as well as incorporating different methods for training and evaluation for each technique used in time-series forecasting. The results demonstrated nuancedbehaviors and outputs when evaluating different models and estimation methods. As outlined in the Results and Discussion section (4), for delta_RBP,LSTM and the Ensemble model showcased their versatility, excelling in diverse scenarios, specially when employed in combination with Cross-Validation estimation method. However, when faced with fil_plus_rate’s linear growth pattern, Linear Regression and Exponential Smoothing emerged as more effective tools. This discernment highlights the importance of matching modeling techniques with the specific characteristic of the data at hand. While these findings align with the established methodologies that underpinned this study, validatingthe suitabilityofthe evaluatedmodels anddata miningtechniques forthe context ofstorage onboarding, several considerations forfuture researchemerge: Feature Selection: After delving into feature importance analysis (4.1), insights were gained to support further investigations that may explore the impact of reducing 48 the number of variables in the dataset. It holds the potential to enhance control and interpretability, and could lead to the exploration of additional variables that might offer heightened accuracy in predicting Storage Onboarding trends. Clustering Approaches: Exploring clustering techniques may yield clusters that are notonly more distinct andinterpretable but also offera broad perspective on Miners segments within the Filecoin Network. This could extendbeyond forecasting andprove invaluable in identifying issues like potential fraud attempts and the centralization of storage power. The dataset constructed for this study includes a unique identifier for miners, stored in the column miner_id,offering opportunities for additional explorations in clustering analysis. Deployment: Future studies can explore how the insights gained in this study can be put into practice in real-world scenarios, leveraging different deployment strategies, which could potentially make a significant impact on the Filecoin ecosystem. In conclusion, this study not only contributes valuable insights to the practitioners within Filecoin Network but also lays the foundation for future explorations. By aligning modeling techniques with the unique characteristics of the data, it is expected that this work will serve as a catalyst for further advancements in the field, ultimately enhancing the efficiency and effectiveness of storage onboarding strategies. 49 B����������� Agrawal, T. (2020). Hyperparameter optimization using scikit-learn. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-6579-6_2. (Cit. on p. 33) Alharbi, F., & Csala, D. (2022). A seasonal autoregressive integrated moving average with exogenous factors (sarimax) forecasting model-based time series approach. Inventions,7(4), 94–94. https://doi.org/10.3390/inventions7040094 (cit. on p. 30) Amekraz, Z., & Hadi, M. Y. (2018). Higher order statistics based method for workload prediction in the cloud using ARMA model. 2018 International Conference on Intelligent Systems and Computer Vision (ISCV), 1–5 (cit. on pp. 11,12). Asesh, A. (2021). Normalization and bias in time series data. Springer eBooks. https: //doi.org/10.1007/978-3-031-11432-8_8. (Cit. on pp. 21,34) Bandara, K., Bergmeir, C., & Smyl, S. (2020). Forecasting across time series databases using recurrent neural networks on groups of similar series: A clustering approach. Expert systems with applications,140, 112896 (cit. on p. 8). Benet, J., & Greco, N. (2017). Filecoin: A Decentralized Storage Network. (Cit. on p. 1). Brockwell, P. J., & Davis, R. A. (2002). Introduction to time series and forecasting. Springer. (Cit. on pp. 8,9). Cerqueira, V., Torgo, L., Torgo, L., & Mozetič, I. (2019). Evaluating time series forecasting models: An empirical study on performance estimation methods. arXiv: Learning.https://doi.org/10.1007/S10994-020-05910-7 (cit. on pp. 35, 36) Coinmonks. (2022). Is filecoin dead? https://medium.com/coinmonks/what-is-up- with-filecoin-fil-84a34ba186c7. (Cit. on p. 22) Cox, K. S., & Holcomb, Z. C. (2017). Box and whisker plot. Routledge. https://doi.org/1 0.4324/9781003096764-22. (Cit. on p. 23) De Filippi, P., & McCarthy, S. (2012). Cloud computing: Centralization and data sovereignty. European Journal of Law and Technology,3(2) (cit. on p. 1). Durbin, J., & Koopman, S. J. (2011). Time series analysis by state space methods. ACM Transactions on Spatial Algorithms and Systems, 253– (cit. on p. 31). 51 REFERENCES BIBLIOGRAPHY Esling, P., & Agon, C. (2012). Time-series data mining. ACM Computing Surveys,45(1), 12:1–12:34. https://doi.org/10.1145/2379776.2379788 (cit. on pp. 8,9) Fakhrazari, A., & Vakilzadian, H. (2017). A survey on time series data mining [ISSN: 2154-0373]. 2017 IEEE International Conference on Electro Information Technology (EIT), 476–481. https://doi.org/10.1109/EIT.2017.8053409 (cit. on pp. 8,9) Filecoin. (2020). Filecoin’s cryptoeconomic constructions. Retrieved 2023-04-03, from https://filecoin.io/blog/posts/filecoin-s-cryptoeconomic-constructions/. (Cit. on p. 2) Galen. (2023). Announcing the quality phase for filecoin plus. https://medium.com/ filecoin-plus/announcing-the-quality-phase-for-filecoin-plus-2890a9797456. (Cit. on p. 4) Geurts, M. (1977). Review of time series analysis: Forecasting and control [Publisher: American Marketing Association]. Journal of Marketing Research,14(2), 269–269. https://doi.org/10.2307/3150485 (cit. on pp. 7–9,30) Granger, C. W. J., & Newbold, P. (1985). Forecasting economic time series (K. Shell, Ed.; 2nd edition). Academic Press. (Cit. on pp. 8,9). Granger, C. W. J. (1979). Forecasting in business and economics (2nd edition). Emerald Publishing Limited. (Cit. on pp. 8,9). Hendikawati, P., Subanar, Abdurakhman, & Tarno. (2020). A survey of time series forecasting from stochastic method to soft computing [Publisher: IOP Publishing]. Journal of Physics: Conference Series,1613(1), 012019. https://doi.org/10.1088/1 742-6596/1613/1/012019 (cit. on pp. 8,10) Hu, S., Xiang, Y., Huo, D., Jawad, S., & Liu, J. (2021). An improved deep belief network based hybrid forecasting method for wind power [Publisher: Elsevier]. Energy, 224, 120185 (cit. on p. 11). Karra, K. (2023). Is filecoin plus essential for filecoin? https://medium.com/ cryptoeconlab/is-filecoin-plus-essential-for-filecoin-45c193c9c46a. (Cit. on p. 4) Ketkar, N. (2016). Introduction to keras. Apress, Berkeley, CA. https://doi.org/10.1007 /978-1-4842-2766-4_7. (Cit. on p. 33) Laima, Š., & Arnoldina, P. (2003). Application of forecasting methods in business [Publisher: Vilnius Gediminas Technical University]. Journal of Business Economics and Management,4(2), 144–157. https://doi.org/10.3846/16111699.2003.963604 8(cit. on p. 25) Lim, B., & Zohren, S. (2021). Time-series forecasting with deep learning: A survey [Publisher: Royal Society]. Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences,379(2194), 20200209. https: //doi.org/10.1098/rsta.2020.0209 (cit. on pp. 8,10) Livieris, I. E., Pintelas, E. G., Stavroyiannis, S., & Pintelas, P. E. (2020). Ensemble deep learning models for forecasting cryptocurrency time-series. Algorithms,13(5), 121–. https://doi.org/10.3390/A13050121 (cit. on pp. 8,11,33,34) 52 BIBLIOGRAPHY Lourenço, J. M. (2021). The NOVAthesis L A T E X Template User’s Manual. NOVA University Lisbon. https://github.com/joaomlourenco/novathesis/raw/master/ template.pdf. (Cit. on p. iii) Macdonald, R. R. (2014). Correlation and covariance matrices. John Wiley Sons, Ltd. https://doi.org/10.1002/9781118445112.STAT06481. (Cit. on p. 23) Mahalakshmi, G., Sridevi, S., & Rajaram, S. (2016). A survey on forecasting of time series data. 2016 International Conference on Computing Technologies and Intelligent Data Engineering (ICCTIDE’16), 1–8. https://doi.org/10.1109/ICCTIDE.2016.7 725358 (cit. on pp. 7–10,31) Makridakis, S. G., & Wheelwright, S. C. (1982). The Handbook of Forecasting: A Manager’s Guide. John Wiley & Sons. (Cit. on pp. 8,9,35). Martínez-Plumed, F., Contreras-Ochando, L., Ferri, C., & Hernández-Orallo, J. (2021). CRISP-DM Twenty Years Later: From Data Mining Processes to Data Science Trajectories [Publisher: Institute of Electrical and Electronics Engineers (IEEE)]. IEEE Transactions on Knowledge and Data Engineering, 3048–3061. Retrieved 2023- 04-03, from https://typeset.io/papers/crisp-dm-twenty-years-later-from- data-mining-processes-to-3v4vg9ygjd (cit. on p. 17) Masini, R. P., Medeiros, M. C., & Mendes, E. F. (2021). Machine Learning Advances for Time Series Forecasting [arXiv:2012.12802 [cs, econ, stat]]. Retrieved 2023-04-03, from http://arxiv.org/abs/2012.12802. (Cit. on pp. 8,10) Mathew, A., Amudha, P., & Sivakumari, S. (2020). Deep learning techniques: An overview. Springer, Singapore. https://doi.org/10.1007/978-981-15-3383-9_54. (Cit. on p. 10) Mazumdar, S., & Kumar, A. S. (2018). Forecasting data center resource usage: An experimental comparison with time-series methods. Proceedings of the Eighth International Conference on Soft Computing and Pattern Recognition (SoCPaR 2016), 151–165 (cit. on pp. 11,12). Mazzeo, D., Herdem, M. S., Matera, N., Bonini, M., Wen, J. Z., Nathwani, J., & Oliveti, G. (2021). Artificial intelligence application for the performance prediction of a clean energy community [Publisher: Elsevier]. Energy,232, 120999 (cit. on pp. 11,12). Mehtab, S., Sen, J., & Dasgupta, S. (2020). Robust analysis of stock price time series using cnn and lstm-based deep learning models. arXiv: Statistical Finance. https://doi.org/10.1109/ICECA49313.2020.9297652 (cit. on pp. 8,11) Mishra, N., Soni, H. K., Sharma, S., & Upadhyay, A. K. (2017). A Comprehensive Survey of Data Mining Techniques on Time Series Data for Rainfall Prediction [Number: 2]. Journal of ICT Research and Applications,11(2), 168–184. https: //doi.org/10.5614/itbj.ict.res.appl.2017.11.2.4 (cit. on pp. 8,10) Mushtaq, R. (2011). Augmented dickey fuller test. Social Science Research Network. https://doi.org/10.2139/SSRN.1911068 (cit. on p. 27) 53 BIBLIOGRAPHY Nyein Naing, W. Y., & Htike, Z. Z. (2015). State of the Art Machine Learning Techniques for Time Series Forecasting: A Survey. Advanced Science Letters,21(11), 3574– 3576. https://doi.org/10.1166/asl.2015.6586 (cit. on pp. 8,10,32) Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., & Duchesnay, E. (2011). Scikit-learn: Machine learning in Python. Journal of Machine Learning Research,12, 2825–2830 (cit. on p. 21). Perner, P. (2001). Data mining - concepts and techniques. (Vol. 16). (Cit. on p. 13). Petelin, G. (2023). Towards understanding the importance of time-series features in automated algorithm performance prediction. Expert systems with applications, 213, 119023–119023. https://doi.org/10.1016/j.eswa.2022.119023 (cit. on p. 40) Rao, S. N., Shobha, G., Prabhu, S., & Deepamala, N. (2019). Time Series Forecasting methods suitable for prediction of CPU usage. 2019 4th International Conference on Computational Systems and Information Technology for Sustainable Solution (CSITSS),4, 1–5 (cit. on pp. 11,12). Reinsel, D., Gantz, J., & Rydning, J. (2017). Data Age 2025: The Evolution of Data to Life- Critical Don’t Focus on Big Data; Focus on the Data That’s Big. International Data Corporation (IDC. Data Age 2025: The Evolution of Data to Life-Critical Don’t Focus on Big Data; Focus on the Data That’s Big, 25. www.idc.com (cit. on p. 1) Reuters. (2021). China’s top regulators ban crypto trading and mining, sending bitcoin tumbling. https://www.reuters.com/world/china/china-central-bank-vows- crackdown-cryptocurrency-trading-2021-09-24/. (Cit. on p. 22) Shen, Z., Zhang, X., Liu, B., Xia, B., Liu, Z., Li, Y., & Long, S. (2019). Pcp-2lstm: Two stacked lstm-based prediction model for power consumption in data centers. 2019 Seventh International Conference on Advanced Cloud and Big Data (CBD), 13–18 (cit. on pp. 11,12,32,47). Shim, J. K. (2000). Strategic Business Forecasting: The Complete Guide to Forecasting Real World Company Performance, Revised Edition (1st edition). CRC Press. (Cit. on pp. 8,9). Spacescope. (2023). https://docs.spacescope.io/guides. (Cit. on p. 19) Takemura, A. (1984). A generalization of autocorrelation and partial autocorrelation functions useful for identification of arma(p,q) processes. Defense Technical Information Center. https://doi.org/10.21236/ADA140880. (Cit. on p. 27) Taylor, S. J., & Letham, B. (2018). Forecasting at scale. The American Statistician,72(1), 37–45. https://doi.org/10.1080/00031305.2017.1380080 (cit. on p. 31) Torres, J. F., Hadjout, D., Sebaa, A., Martínez-Álvarez, F., & Troncoso, A. (2021). Deep Learning for Time Series Forecasting: A Survey [Publisher: Mary Ann Liebert, Inc., publishers]. Big Data,9(1), 3–21. https://doi.org/10.1089/big.2020.0159 (cit. on pp. 8,10) 54 BIBLIOGRAPHY Vazquez, C. (2015). Time series forecasting of cloud data center workloads for dynamic resource provisioning. The University of Texas at San Antonio. (Cit. on pp. 11,12). Walker, G. (1931). On periodicity in series of related terms. Proceedings of The Royal Society A: Mathematical, Physical and Engineering Sciences,131(818), 518–532. https://doi.org/10.1098/RSPA.1931.0069 (cit. on p. 7) Wei, W. W. S. (1989). Time series analysis : Univariate and multivariate methods.https: //doi.org/10.1080/00401706.1991.10484777. (Cit. on p. 29) Yan, Q. Y., Yan, X., & He, S. Q. (2013). Forecast of energy storage applied in wind power integration. Applied Mechanics and Materials,291, 531–535 (cit. on p. 11). Yule, G. (1926). On a method of investigating periodicities in disturbed series, with special reference to wolfer’s sunspot numbers. Philosophical Transactions of the Royal Society A,226, 267–298. https://doi.org/10.1098/RSTA.1927.0007 (cit. on p. 7) Zakamulin, V. (2016). Basics of moving averages. Palgrave Macmillan, Cham. https: //doi.org/10.1007/978-3-319-60970-6_2. (Cit. on p. 23) Zohuri,B.,Mossavar-Rahmani,F.,&Behgounia,F. (2021). Statisticalforecasting—regression and time series analysis. Elsevier eBooks. https://doi.org/10.1016/b978-0-323-9 5112-8.00021-0. (Cit. on p. 30) ������������������������������������������ �� ��������������������������������������������������������������������������������������������� ���������������������������������� �� ���������������������������������������������������������������������������������������������������������������������������� 55 Figure A.6: Performance of Exponential Smoothing for fil_plus_rate 63 APPENDIX A. APPENDIX 1 Figure A.7: Performance of Exponential Smoothing + SARIMAX for delta_RBP 64 Figure A.8: Performance of Exponential Smoothing + SARIMAX for fil_plus_rate 65 APPENDIX A. APPENDIX 1 Figure A.9: Performance of LSTM for delta_RBP 66 Figure A.10: Performance of LSTM for fil_plus_rate 67 APPENDIX A. APPENDIX 1 Figure A.11: Performance of Ensemble (LSTM + CNN) for delta_RBP 68 Figure A.12: Performance of Ensemble (LSTM + CNN) for fil_plus_rate 69 APPENDIX A. APPENDIX 1 Figure A.13: Permutation Importance for delta_RBP 70 Figure A.14: SHAP for delta_RBP 71 APPENDIX A. APPENDIX 1 Figure A.15: Permutation Importance for fil_plus_rate 72