Abstract
Forecasting spare parts demand is challenging due to its intermittent, sparse, and highly irregular nature. Traditional inventory strategies, based on stable demand patterns, often lead to inefficiencies, including excess inventory and poor service performance. This study examines the impact of feature engineering combined with ABC–XYZ inventory segmentation on forecasting accuracy in a real-world industrial context. A biweekly forecasting framework was developed using six years (2019–2024) of transactional data from ERP and Field Service Management (FSM) systems of a forklift service company. Fifteen derived features capturing demand dynamics, intermittency, service behavior, and statistical structure were constructed and evaluated using Random Forest, XGBoost, and Support Vector Regression (SVR) models. The results show that restricting modeling to AY/BY inventory categories substantially improves predictive accuracy, reducing RMSE from >22 to <3 compared to full-SKU modeling. A reduced seven-feature set further lowers XGBoost’s RMSE to 2.51 (MAE = 2.14), achieving the best performance across all tested configurations on the 2024 hold-out period. The best-performing configuration achieves a Predicted-Demand Turnover Index (PDTI) of 44.13, compared with a baseline actual stock turnover of 2.78 (€65,944 actual demand/€23,721 historical average stock). PDTI is a theoretical scenario index; operationalizing it requires inventory-policy simulation under realistic constraints. These findings highlight that forecasting performance in intermittent-demand environments depends more on data representation and segmentation than on model selection alone. The study provides a reproducible, interpretable framework for integrating feature engineering and inventory segmentation into data-driven inventory management.
1. Introduction
Efficient management of spare parts inventory is crucial for operational continuity and controlling costs in industrial service systems. In contrast to finished items, the market for spare parts is generally marked by prolonged intervals of no demand, punctuated by sporadic consumption episodes, which complicates precise forecasting. In these contexts, inventory decisions are challenged by the concurrent necessity to guarantee part availability, prevent surplus stock, and address highly variable demand patterns. Inaccurate forecasting exposes enterprises to a dual risk: overstocking escalates holding costs and deadstock, whereas understocking results in service delays, equipment downtime, and diminished customer satisfaction.
Conventional inventory management techniques, including Economic Order Quantity (EOQ), reorder-point strategies, and basic time-series forecasting methods, typically rely on the assumption of relatively consistent, continuous demand. These assumptions are misaligned with intermittent spare parts demand, which is characterized by sparsity, volatility, and zero inflation in the data-generating process. Consequently, traditional techniques often fail to capture demand structure and may yield impractical inventory policies.
Recent advances in machine learning (ML) enable the modeling of complex, nonlinear demand patterns that are difficult to capture with traditional statistical methods. The performance of machine learning models depends not only on algorithm selection, but also on the quality and organization of the input data. Raw transactional records frequently offer an inadequate depiction of intermittent demand, since they fail to clearly account for temporal dependence, recency effects, intermittency structure, or operational context. Consequently, feature engineering is crucial in converting sparse transactional data into more informative representations that enhance model learning.
A second crucial factor is that spare parts inventories exhibit significant heterogeneity. Items differ substantially in value, usage frequency, and demand variability, rendering a uniform forecasting approach ineffective. Inventory segmentation techniques, such as ABC–XYZ classification, help differentiate high- and low-impact products, enabling focused forecasting efforts on areas where predictive enhancement is most operationally beneficial. When integrated with feature engineering, such segmentation can reduce noise, enhance model relevance, and strengthen the link between forecasting results and inventory decisions.
In the forklift servicing industry specifically, demand unpredictability is compounded by sector-specific factors. First, the serviced fleet of over 2500 units across 860 clients spans four equipment types—electric counterbalance forklifts (~38%), reach trucks (~28%), pallet trucks and order pickers (~22%), and IC and rough-terrain units (~12%)—each imposing distinct wear patterns on hydraulic seals, mast components, and drive systems. Second, clients span the logistics/distribution (~32%), manufacturing (~33%), retail (~20%), and construction/other (~15%) sectors, resulting in heterogeneous usage intensities that make fleet-level demand aggregation unreliable without item-level segmentation. Third, emergency service obligations mean that stockouts translate directly to customer equipment downtime and contractual service-level violations, creating asymmetric costs of under-stocking that standard forecasting frameworks do not capture. These characteristics distinguish forklift spare parts demand from retail or consumer-goods contexts and motivate the integration of FSM service data with ERP inventory records as the empirical foundation for the proposed framework.
Despite these advancements, current research rarely integrates the three components—feature engineering, inventory segmentation, and business-centric evaluation—into a unified applied framework. Most studies focus on model comparison while neglecting the impact of data representation on performance, the management of SKU heterogeneity before modeling, and the translation of forecasting improvements into operational results. This gap is especially pertinent in small- and medium-sized industrial environments, where practical application requires methods that are not only precise but also interpretable, scalable, and aligned with real decision-making processes.
This paper fills that gap by presenting an empirical case study in the forklift servicing sector, utilizing six years of ERP and Field Service Management (FSM) data to examine the combined impact of feature engineering and ABC–XYZ segmentation on forecasting intermittent spare parts demand and enhancing inventory-related outcomes. The analysis is organized around three research questions:
- RQ1: How does ABC–XYZ inventory segmentation influence the predictability of intermittent spare parts demand, and which category configuration provides the most suitable analytical basis for forecasting model development?
- RQ2: What training-sample composition and feature-engineering structure yield the highest forecasting performance for spare parts drawn from the selected ABC–XYZ categories, particularly within the AY and BY demand classes?
- RQ3: How can the empirically identified segmentation, sampling, and feature-engineering strategy be translated into an operational decision framework that supports the company’s inventory planning and broader business objectives (addressed through the segment-level policy framework in Section 6.3)?
This paper presents three contributions. First, it establishes a systematic feature-engineering framework tailored to the demands of intermittent spare parts, incorporating derived variables to capture trends, intermittency, service behavior, and statistical characteristics of demand. Second, it provides empirical evidence that ABC–XYZ segmentation is an effective preprocessing step for improving model precision and mitigating noise across diverse SKU portfolios, with model performance evaluated across three ML algorithms under a controlled ablation design. Third, it assesses predictive performance not solely by statistical error measures but also by its impact on inventory efficiency, translating findings into a segment-level operational decision framework that directly supports replenishment planning.
The subsequent sections of this work are structured as follows. Section 2 reviews the pertinent literature on spare parts inventory management, intermittent demand forecasting, and the use of machine learning. Section 3 describes the study’s industrial setting, data sources, and methodological framework. Section 4 presents the ABC–XYZ segmentation methodology and the feature engineering framework. Section 5 details the forecasting models, experimental design, and empirical findings. Section 6 discusses the findings, management implications, limitations, and avenues for future research. Section 7 concludes the paper.
2. Related Works
Forecasting spare parts demand has attracted increasing attention due to the complexity of intermittent demand patterns, characterized by sparsity, irregularity, and high variability. Recent research emphasizes that forecasting performance is driven not only by model selection but also by demand representation, feature engineering, and inventory-aware segmentation. Accordingly, the literature spans several interrelated domains, including intermittent-demand forecasting, feature engineering, structured modeling approaches, contextual variables, machine learning techniques, and inventory implications.
2.1. Forecasting Demand for Spare Parts and Inventory Challenges
Intermittent spare parts demand violates the key assumptions of traditional forecasting methods, necessitating specialized modeling approaches. The foundational parametric approach is Croston’s method [1], which decomposes intermittent demand into two constituent sub-processes—demand occurrence (modeled as a Bernoulli process) and demand size (conditional on occurrence)—and applies separate exponential smoothing to each. Syntetos and Boylan [2,3] subsequently demonstrated that Croston’s method produces positively biased estimates of mean demand and proposed the Syntetos–Boylan Approximation (SBA), which introduces a bias-correction factor. Teunter et al. [4] extended this family with the TSB method, which replaces the inter-arrival-time component with a demand-probability estimate that is updated in each period, thereby allowing the forecast to decay naturally toward zero for items approaching obsolescence. Collectively, these Croston-family methods remain the standard parametric benchmarks for intermittent demand forecasting [5]. A direct comparison against representative Croston-family methods is reported in Section 5.8; expansion to a fuller set of classical and probabilistic benchmarks (TSB, ADIDA, IMAPA) is identified as a priority for future work.
Studies consistently show that machine learning and adaptive methods outperform classical techniques in handling sparse and irregular demand patterns, particularly when models are explicitly designed to capture characteristics of intermittency, such as demand occurrence and magnitude [6,7,8]. For example, neural network-based approaches improve prediction accuracy by learning nonlinear dependencies, while SVM-based models provide robustness under limited and noisy data [6,7].
A persistent challenge in spare parts forecasting is data scarcity, especially for slow-moving or newly introduced items. Several studies demonstrate that reliable forecasts can still be obtained when models incorporate structural assumptions or leverage alternative representations tailored to intermittent demand [8,9]. Framework-based approaches, such as data-driven intermittent-demand pipelines, further highlight the importance of integrating fragmented operational signals into structured forecasting systems [10,11].
From an inventory perspective, forecasting must be aligned with classification and control strategies. ABC–XYZ segmentation has been widely validated as an effective mechanism for distinguishing items by value and demand variability, thereby enabling differentiated inventory policies [12,13,14]. Empirical evidence shows that integrating classification with forecasting reduces overstocking, improves service levels, and enhances decision-making efficiency [12,13,14]. Thus, forecasting accuracy alone is insufficient without embedding it within an inventory-aware framework.
2.2. Feature Engineering and Derived Variables
Feature engineering plays a central role in improving forecasting performance, particularly in intermittent-demand environments where raw time-series data are often insufficiently informative. Multiple studies demonstrate that derived variables capturing intermittency, temporal structure, and variability significantly enhance predictive accuracy compared to models trained on raw demand data alone [8,15,16,17].
Hybrid approaches that combine feature engineering with ensemble learning consistently outperform standalone models, as they better capture latent demand dynamics [15,16]. For instance, automated feature-engineering frameworks systematically generate informative predictors, while signal-processing techniques such as wavelet transformations extract hidden patterns from sparse and noisy time series [16,17]. These findings indicate that representation quality is a primary driver of forecasting success.
Explainable artificial intelligence further strengthens this domain by enabling principled feature selection. Techniques such as SHAP and Grad-CAM enable researchers to quantify feature importance and identify redundant or misleading variables, thereby improving model efficiency and robustness [18]. This is particularly important in industrial contexts where large feature spaces derived from ERP and service systems can introduce noise.
Crucially, domain-specific feature engineering has proven especially effective for intermittent demand. Studies focusing on spare parts show that features explicitly designed to capture demand irregularity—such as inter-demand intervals and demand occurrence indicators—outperform generic representations [8]. This supports the argument that feature engineering must be tailored to the structural properties of the demand process.
2.3. Modeling Intermittent Demand Using Structured Representations
A growing body of literature emphasizes that intermittent demand should be modeled using structured representations rather than treated as a continuous time series. Approaches that explicitly encode the occurrence of demand, the spacing between non-zero observations, and demand size have been shown to improve forecasting accuracy [8,9,10,11,19] significantly.
Hybrid and multi-stage frameworks further enhance performance by decomposing demand signals or integrating multiple data sources before prediction. Such approaches are particularly effective in industrial settings where demand is influenced by operational processes and service events [10,11,15]. These structured pipelines transform sparse and fragmented data into more informative representations.
Another important strategy is to leverage cross-item or grouped information to mitigate data sparsity. Studies demonstrate that pooling information across similar products or categories improves forecasting accuracy when individual item histories are limited [15,20]. This aligns with segmentation-based modeling approaches, in which shared characteristics group items to improve predictive accuracy.
Overall, the literature converges on the conclusion that structured representations—rather than raw time-series inputs—are essential for effectively modeling intermittent demand.
2.4. Contextual and External Variables
Incorporating contextual and external variables has emerged as a critical factor in improving demand forecasting accuracy. Empirical studies show that supply-chain information, customer attributes, and operational variables provide complementary signals that enhance predictive performance beyond what historical demand alone can. This is particularly relevant in spare parts environments, where demand is often driven by maintenance schedules, equipment usage, and service interventions rather than traditional purchasing behavior. Although these drivers are not always explicitly modeled, studies consistently demonstrate that integrating such contextual information reduces uncertainty and improves forecast reliability [20,21].
Furthermore, explainability-based approaches highlight that not all contextual variables contribute equally to predictive performance. Feature selection techniques ensure that only meaningful external variables are retained, thereby preventing overfitting and improving model interpretability [18]. This reinforces the importance of carefully curated, domain-relevant feature sets when incorporating contextual information into forecasting models.
2.5. Machine Learning, Hybrid Models, and Ensemble Methods
Machine learning and deep-learning approaches have become dominant in demand forecasting due to their ability to capture nonlinear relationships and complex dependencies. Studies consistently show that architectures such as LSTM and CNN-LSTM hybrids outperform traditional statistical models, particularly in environments characterized by irregular and nonlinear demand patterns [22,23,24,25].
However, comparative analyses indicate that no single model universally dominates across all contexts. Model performance is highly dependent on data characteristics, feature representation, and problem structure [7,21,26]. For example, SVM-based models perform well under sparse data conditions, while ensemble and boosting methods excel when combined with rich feature sets [7,21,27].
Hybrid and ensemble approaches provide a robust solution by integrating multiple modeling paradigms. Research demonstrates that combining feature engineering, ensemble learning, and optimization techniques yields superior, more stable forecasting performance [15,23,27]. Importantly, these improvements are often driven more by enhanced data representation than by the intrinsic superiority of any single algorithm [6,15,27,28]. Recent advances in time-series foundation models—including transformer-based architectures such as TimeGPT [29], TimesFM [30], and Chronos [31]—have shown promising results on large-scale forecasting benchmarks. However, their applicability in the present context is limited by three practical constraints. First, the modeling subset of 30 SKUs with 78 biweekly training periods represents a data regime substantially below the scale at which foundation models reliably outperform well-engineered tabular methods. Second, the service-driven, context-dependent nature of forklift spare parts demand requires features derived from ERP and FSM systems that are not directly consumable by sequence-to-sequence architectures without custom adaptation. Third, interpretability is a prerequisite for adoption in the SME partner organization, where warehouse managers must be able to audit and explain replenishment decisions—a requirement that favors gradient-boosted tree models over black-box neural approaches. The application of foundation models at a larger SKU scale, with richer contextual encoding, represents a natural direction for future work.
Tree-based ensemble and kernel-based learning techniques offer a robust methodological foundation for supervised forecasting challenges. Random Forests enhance prediction robustness by combining several decorrelated decision trees trained on bootstrap samples, therefore diminishing variance while maintaining nonlinear modeling capability [32]. XGBoost enhances this concept through a scalable gradient-boosting framework that incrementally constructs regularized trees to mitigate residual errors and improve computational efficiency [33]. Conversely, Support Vector Regression is based on statistical learning theory, aiming to develop models with robust generalization by reconciling empirical error reduction with control of model complexity [34]. Collectively, these approaches provide complementary modeling viewpoints appropriate for assessing nonlinear, sparse, and heterogeneous demand patterns.
2.6. Forecasting for Inventory Optimization and Business Implications
Forecasting effectiveness should ultimately be evaluated based on its impact on inventory management and operational performance. Numerous studies show that improved demand forecasting reduces inventory costs, safety stock levels, and stockouts, while improving service levels and customer satisfaction [23,24,25,26,27,28].
Deep-learning-based forecasting models enable better alignment between demand variability and inventory policies, resulting in more efficient stock management [24,25]. Similarly, AI-driven forecasting approaches have been shown to enhance overall supply-chain performance through improved decision-making and resource allocation [26,28].
Inventory classification methods such as ABC–XYZ and EOQ play a critical role in translating forecasts into actionable decisions. Studies confirm that integrating forecasting with classification frameworks improves inventory control and reduces inefficiencies [12,13,14]. These findings highlight that forecasting should be assessed not only in terms of statistical accuracy but also in terms of its operational and economic impact.
2.7. Comparative Synthesis
The literature reveals three consistent insights. First, intermittent demand requires specialized modeling approaches that explicitly account for sparsity and irregularity [6,7,8,9,10,11,19]. Second, feature engineering and structured representations are critical drivers of forecasting performance, often outweighing the choice of predictive model [8,15,16,17,18,27]. Third, inventory segmentation remains essential for translating forecasts into effective operational decisions [12,13,14].
Additionally, hybrid and ensemble methods consistently outperform standalone models when combined with strong feature engineering and segmentation strategies [15,23,27]. Collectively, these findings indicate that forecasting performance is best understood as the outcome of an integrated system involving representation, segmentation, and modeling rather than model selection alone.
2.8. Research Deficiencies and Contextualization
Despite significant advances, several gaps remain in the literature. First, there is limited integration of feature engineering and inventory segmentation within a unified forecasting framework. While both areas are well studied independently, few works explicitly combine them in the context of intermittent spare parts demand [12,13,14,15,22,23,24,25,26]. More specifically, the joint application of ABC–XYZ classification as a preprocessing filter for machine learning models—rather than as a standalone inventory-control tool—has received limited attention. Existing studies apply ABC–XYZ to support reorder-point policies or EOQ calculations [12,13,14], but do not investigate how segmentation-defined subsets affect the training dynamics, feature relevance, and predictive performance of supervised learning models for intermittent demand. This study fills that gap by treating ABC–XYZ segmentation as an explicit preprocessing step and empirically measuring its impact on ML model performance through controlled ablation (Section 5.4).
Second, the role of derived variables in intermittent-demand forecasting is not fully explored. Although feature engineering has been shown to improve accuracy [15,16,17,18,27], its interaction with segmentation strategies remains underexamined.
Third, the incorporation of operational and service-driven variables is still limited, despite evidence that contextual information enhances forecasting performance [20,21]. Finally, many studies prioritize model comparison over representation design, leaving a gap in understanding how data transformation influences forecasting outcomes.
The present study addresses these gaps by integrating derived feature engineering with ABC–XYZ segmentation and evaluating multiple machine learning models in a real industrial context. It demonstrates that forecasting performance in intermittent-demand environments depends more directly on data representation and segmentation than on model choice alone.
3. Industrial Context, Data Sources, and Study Methodology
This section introduces the industrial setting, data sources, and methodological framework underpinning the study. It begins by defining the operational context and inventory management problem, followed by a description of the enterprise systems and data extraction procedures used to construct the dataset. The section then outlines the main preparation and segmentation steps and concludes with the analytical design adopted for forecasting and evaluation.
3.1. Industrial Context and Problem Definition
The empirical context of this study is a company operating in the material handling industry, whose core activities include the sale of new forklifts, rental of new and pre-owned units, and the provision of maintenance and repair services. In 2024, the company serviced more than 2500 forklifts for approximately 860 clients across Croatia and Montenegro, with operations centrally coordinated from its headquarters in Zagreb. The serviced fleet comprised approximately 950 electric counterbalance forklifts (38%), 700 reach trucks (28%), 550 pallet trucks and order pickers (22%), and 300 IC and rough-terrain units (12%). Clients were distributed across logistics/distribution (~32%, ~275 clients), manufacturing (~33%, ~284 clients), retail/FMCG (~20%, ~172 clients), and construction/other (~15%, ~129 clients). This centralized structure enables efficient coordination of service operations and spare parts distribution; however, it simultaneously increases the importance of accurate demand forecasting and inventory control to ensure timely service delivery across geographically dispersed clients.
Despite a strategic focus on operational reliability and customer satisfaction, supported by durable product design and extended warranties, inventory management practices remain largely heuristic. Replenishment decisions are typically executed on a biweekly basis using fixed safety stock levels and expert judgment from warehouse personnel. While such approaches may perform adequately under stable demand conditions, they are inherently limited in environments characterized by intermittent, non-stationary, and highly variable demand, which are typical for spare parts systems.
A critical limitation of the current system is its predominantly reactive nature. Spare parts not available in stock are procured reactively after demand is observed during field service operations. This results in prolonged repair lead times, increased equipment downtime, and reduced service levels. Simultaneously, the company incurs elevated logistics and procurement costs due to urgent and fragmented ordering processes, even for low-value components. As a result, operational performance largely depends on ad hoc decision-making rather than on structured, data-driven inventory planning.
Although a spreadsheet-based tool is occasionally employed to categorize spare parts using metrics such as average demand and ABC–XYZ classification, its practical effectiveness is limited. The tool relies on manual updates, lacks scalability, and does not dynamically adapt to evolving demand patterns. Moreover, the uniform application of classification rules across heterogeneous spare parts reduces their ability to capture the underlying variability and operational relevance of different items. Consequently, existing categorization practices provide only partial decision support and fail to address the complexity of real-world demand behavior.
Empirical analysis of inventory performance reveals substantial structural inefficiencies. In 2023, approximately €130,000 worth of spare parts remained unused for more than five years, representing over 25% of the total inventory value of nearly €400,000. This accumulation of deadstock indicates inefficient capital allocation, increased holding costs, and suboptimal utilization of warehouse capacity.
The existing replenishment techniques exacerbate these inefficiencies, as they rely predominantly on fixed safety stock levels and human adjustments rather than dynamically updated demand signals. Consequently, inventory decisions often misalign with actual consumption patterns, leading to both overstocking of slow-moving commodities and reactive acquisition of commonly used components. This disconnect underscores the need for a forecasting methodology that improves predictive accuracy and aligns inventory decisions with actual operational behavior.
Furthermore, longitudinal trends indicate a continuous increase in overall inventory levels, with projections suggesting growth exceeding 36% in 2024. In parallel, stock turnover has declined, highlighting a growing misalignment between inventory investment and the realization of actual demand. These patterns reflect systemic limitations of the current inventory control approach and underscore the need for more adaptive and responsive decision-making mechanisms.
Heterogeneous operating conditions across industries further intensify the problem’s complexity. Forklifts are deployed in diverse environments such as logistics, manufacturing, and construction, where usage intensity, environmental factors, and operator behavior vary significantly. These factors influence component wear rates and failure patterns, resulting in stochastic, highly uncertain demand processes that are difficult to capture with traditional deterministic or experience-based approaches.
Despite the availability of established inventory classification techniques and forecasting methods, current practices within the company do not systematically integrate demand variability, temporal dynamics, and operational context into decision-making. This gap between theoretical approaches and practical implementation limits the effectiveness of inventory optimization efforts, particularly under intermittent demand and high uncertainty.
In response to these challenges, there is a clear need for a data-driven framework that integrates advanced demand forecasting, feature engineering, and systematic evaluation. Such an approach has the potential to improve forecasting accuracy, reduce deadstock, enhance service levels, and support more efficient resource allocation. By addressing the identified limitations of existing practices, this study aims to help bridge the gap between theory and real-world application in spare parts inventory management.
3.2. Operational Workflow and Data Sources
The study first mapped the service and spare parts process to develop a forecasting framework that accurately represents real business activities. The process begins when a client reports a forklift malfunction to the service administration team. The problem is recorded in the company’s customer and service systems, following which a service manager arranges an intervention using the Field Service Management (FSM) platform. Technicians use either readily available spare parts or requisition additional components from the warehouse, depending on anticipated repair needs. Upon completion and verification of the repair, all components used and their quantities are entered into the Enterprise Resource Planning (ERP) system. This final transactional record reflects actual demand for spare parts and constitutes the empirical foundation for the study.
Consequently, two primary enterprise systems were utilized as data sources. The ERP system served as the primary repository of historical inventory and consumption data, whereas the FSM system provided supplementary operational context for service operations. The research in the ERP environment primarily used document header records, document item records, SKU master data, and document-type metadata. Collectively, these data facilitated the reconstruction of service-related demand events at the SKU level, encompassing consumed quantities, usage dates, and specific qualitative attributes such as spare part names, categories, and prices. The investigation required structured data extraction and merging to compile a cohesive analytical dataset, as pertinent information was dispersed across multiple tables and, in some cases, across different system tiers.
Integrating ERP and FSM data presented three practical challenges. First, the two systems use different primary key structures: FSM identifies records by service order number, while ERP identifies inventory transactions by document number (DGL/DST tables). Linking them required a multi-step join via technician identifier, service appointment date, and client site code. Second, temporal misalignment arose because the service event date (recorded in FSM at the time of the field visit) and the inventory transaction date (recorded in ERP at the time of parts issue) could differ by up to 48 h for remote-warehouse fulfilments. All records were aligned to the service event date to preserve the causal sequence of demand. Third, single-service events sometimes generated multiple partial-issue ERP transactions. These were deduplicated by aggregating records by SKUCode and service order before biweekly rollup, yielding one demand record per SKU per service visit.
This process ensures that the objective variable is derived from actual spare parts consumption during completed service appointments, rather than from projected or predicted demand. Consequently, the forecasting issue examined in this study is based on empirical operational behavior rather than theoretical inventory assumptions.
3.3. Data Extraction and Scope Delimitation
Data extraction was performed directly from the company’s SQL Server environment using Python, with SQLAlchemy 1.4 to create secure database connections and execute structured queries. The preliminary extraction encompassed six years from 2019 to 2024. This time frame was chosen to reconcile two conflicting demands: the need for sufficient historical depth for model training and the imperative to maintain operational relevance in a rapidly evolving business landscape. The initial extract yielded 38,534 records, with each row denoting a singular spare part demand event linked to a service transaction. To formally define the target variable used throughout the analysis, demand is represented at the SKU–time level:
where di,t denotes the observed demand quantity of spare part i in biweekly period t, where di,t ∈ ℝ ≥ 0. All values are non-negative integers; the few negative raw values (<0.1% of records, confirmed as data-entry errors rather than product returns) were set to zero per Equation (4). The total demand over the observation horizon is then defined as:
di,t
An additional refinement of scope was required as not all past SKUs were pertinent to current operations. To prevent training models on outdated or inactive products, the service-demand dataset was filtered against current stock records, retaining only spare parts that remain active in inventory. Following this filtration process, 851 distinct active SKUs remained within the scope. The aim was not to broadly recreate past demand, but to forecast demand for goods that are operationally pertinent and suitable for future replenishment decisions.
The data extraction phase involved acquiring up-to-date pricing information for each SKU, enabling subsequent inventory valuation calculations and KPI analysis. In cases with multiple price fields, business logic was used to select the most suitable value. The prices were integrated into the stock tables to assess stock value and facilitate the evaluation of stock turnover, the primary business performance metric. Based on the imputed prices, the stock value of each item is calculated as:
where denotes the inventory value of item , and represents the available stock quantity.
3.4. Data Cleansing and Preparation
Despite the source systems being production-grade enterprise systems and thus rather structured, numerous data-quality concerns necessitated rectification before modeling. A limited quantity of demand data included negative values due to manual input errors. Because these values were invalid for representing consumption, they were set to zero rather than deleted, thereby maintaining transactional continuity and avoiding distortion of the target variable. This correction can be expressed as a simple transformation applied to the raw demand values:
where denotes the cleaned demand used in subsequent analysis.
Certain selected spare parts had costs of 0 (null). To resolve this issue, missing prices were replaced with the mean non-zero price for the corresponding SKU; when no valid SKU-level value was available, the overall average spare parts price served as a fallback. Formally, the positive-price set and count for SKU i are defined as J+i = {j: pi, j > 0} and n+i = |J+i|. The SKU-level mean price is i = (1/n+i) ∑j ∈ J+i pi, j when n+i > 0, and the global fallback global (mean of all valid positive prices across all SKUs) is applied when n+i = 0. This global fallback was applied to 14 SKUs (1.6% of the 851 active items). The imputation procedure for missing or invalid price values is defined as follows:
where denotes the imputed price, is the mean price for SKU , and is the global average across all spare parts. Given the limited number of such scenarios, this method was deemed preferable to omitting the affected goods entirely.
An additional concern pertained to discrepancies in string-based identifiers, particularly SKU codes and nomenclature. Due to the entry of master data by various administrative roles without stringent naming regulation, near-duplicate values emerged from leading or trailing whitespace and small input discrepancies. Consequently, all string fields were standardized by converting them to the string type and removing invisible whitespace characters before the merging and grouping operations. This technique eliminated silent duplication and enhanced the reliability of key joins between transactional and master data databases.
After the cleaning process, the dataset was restructured into a format conducive to demand modeling. Because the company’s operational ordering cycle is biweekly, daily service-demand data were consolidated into two-week intervals. The aggregation of daily demand into biweekly periods is defined as:
where represents a biweekly time interval.
This aggregation served two purposes. First, it synchronized the modeling process with the actual decision timeframe utilized by warehouse managers. Second, it mitigated the intensity of zero inflation at a daily time resolution, thereby generating a more insightful demand series while adhering to the operational principles of replenishment planning.
To ensure a consistent time series representation, periods without observed demand are explicitly modeled as zero-demand intervals:
Equation (8) defines the zero-completion rule for the biweekly SKU-level panel: let T = {τ1, τ2, …, τ_T} denote the complete set of biweekly periods spanning the observation horizon (T = 156 for 2019–2024). For each SKU i and biweekly period τ ∈ T, the panel demand value d_{i,τ} equals the sum of completed daily demand records within τ whenever at least one transaction exists for SKU i in that window, and zero otherwise. This rule yields a balanced biweekly panel of size |T| × |I| where I is the set of modeled SKUs. For the 30-SKU AY/BY modeling subset, the rule produces 30 × 156 = 4680 panel observations from 2044 original transaction records. This formulation preserves the intermittent nature of demand while enabling consistent supervised-learning input. The fill_missing_2weeks function expanded each SKU record to cover all 156 biweekly periods, inserting zero-demand rows for missing intervals; the dataset grew from 2044 rows (demand events only) to 4680 rows (30 SKUs × 156 biweeks) after imputation.
The degree of demand sparsity can be quantified using the proportion of zero-demand periods:
where represents the share of periods with no demand for the item . Here, T denotes the total number of completed biweekly periods after zero-demand imputation: T = 156 for the full 2019–2024 window and T = 78 for the 2021–2023 training window. The indicator 1(d*i, t = 0) is evaluated at biweekly resolution. At daily resolution, each SKU recorded demand on approximately 1.53% of 1570 working days (98.47% zero-demand rate). At biweekly resolution, approximately 78.8% of SKU–period observations in the 30-SKU AY/BY modeling subset have zero demand (4680–993 non-zero periods out of 4680 total biweekly records).
3.5. Demand Characterization and Inventory Segmentation
Exploratory analysis confirms that demand is highly intermittent. During the six-year monitoring period, total demand reached 21,039 non-zero demand records (individual transaction lines) across 851 active SKUs. During the observed period of approximately 1570 working days, the average SKU generated approximately 24 non-zero demand records, indicating that each item saw no demand on roughly 98.47% of the working days. The ratio of zero-demand periods is computed as a share of the total number of working days. The resultant value indicates an extreme manifestation of sparse demand, aligning with intermittent and, for certain commodities, irregular demand patterns.
Due to the non-uniformity of demand behavior across SKUs, the study employed a two-stage inventory segmentation process before model development. Initially, ABC analysis was used to prioritize spare parts by business significance, using a weighted score that integrates overall demand quantity and demand frequency. The ABC classification is formally defined as follows, for total demand, demand frequency (indicator function), weighted ABC score, and ABC thresholds:
The integration of ABC and XYZ classifications produced a 3 × 3 inventory grid that facilitated the simultaneous evaluation of commercial significance and predictability. As demonstrated empirically in Section 5, the AY and BY categories were identified as the most suitable subset for predictive modeling, as they exhibit moderate-to-high significance and variability conducive to machine learning. In contrast, Z-category items generated excessive noise, whereas extremely stable X-category items were less likely to require advanced forecasting methods.
To enhance signal quality, the AY/BY subset was refined by retaining items with adequate temporal presence within biweekly demand intervals. This narrowed the candidate pool to 30 SKUs and generated the final modeling dataset.
3.6. Research Design and Analytical Methodology
The empirical design of the study adhered to a chronological forecasting framework to maintain authentic decision-making settings. The final dataset consisted of 156 biweekly periods, with the years 2021–2023 allocated for model training and the year 2024 designated as a hold-out test set. The years 2019–2020 were omitted from the final training experiments due to their potential to exhibit COVID-19-related demand disruptions, which could compromise the representativeness of the acquired patterns. Given the study’s operational focus and the limited 30-SKU modeling subset, a single chronological split was adopted as the primary evaluation design. Bootstrap confidence intervals are reported throughout to characterize metric uncertainty partially; rolling-origin evaluation across multiple temporal folds is acknowledged as a remaining limitation in Section 7.1. No random shuffling was employed at any stage, ensuring that model evaluation accurately reflected genuine out-of-sample forecasting rather than randomized interpolation.
The analytical pipeline comprised four primary phases. First, pertinent SKUs were identified by data cleansing and ABC–XYZ segmentation. Second, the biweekly demand series was enhanced through feature engineering, yielding derived variables that capture trend, intermittency, service behavior, and statistical structure. Third, various machine learning models were trained and evaluated, including Random Forest, XGBoost, and Support Vector Regression. The model results were assessed using standard error metrics, particularly RMSE and MAE, and were subsequently interpreted in terms of business consequences using stock turnover analysis. This architecture enabled the linkage of methodological choices to both forecast accuracy and a practical inventory management purpose.
The primary KPI of the study was stock turnover, chosen for its direct correlation to the efficiency of converting inventory value into actual utilization. In contrast to purely statistical error metrics, stock turnover links forecasting improvements to a business-relevant outcome, making it particularly appropriate for assessing practical benefits in an applied industrial setting.
3.7. Methodological Framework
The work methodologically intersects applied machine learning, inventory analytics, and decision support. The objective is not just to determine the statistically optimal predictive model, but to establish a reproducible pipeline that aligns with operational decision cycles, is robust to demand variability, and is interpretable enough for operational adoption. This posture is particularly crucial in small and medium-sized corporate contexts, where forecasting technologies must provide not just predictive utility but also explicit implementation rationale and commercial significance.
The industrial environment, system-derived data, segmentation process, and chronological evaluation design collectively form a cohesive empirical foundation for the experiments detailed in the subsequent sections.
4. ABC–XYZ Segmentation and Feature Engineering
This section presents the two-stage inventory segmentation methodology and the systematic feature-engineering framework that jointly define the data representation used for forecasting. The segmentation narrows the SKU portfolio to a subset amenable to predictive modeling. At the same time, the derived features transform sparse transactional records into structured inputs that capture demand dynamics, intermittency, and service behavior.
4.1. ABC Classification
ABC analysis ranks spare parts by business significance. Because both aggregate consumption and usage regularity are operationally relevant in intermittent-demand environments, a weighted composite score is employed rather than a single criterion. For each item i, the total demand and demand frequency cap F sub i are computed as defined in Equations (10) and (11). The composite ABC score is then:
where α = 0.6 controls the relative weight of demand magnitude versus frequency. Items are ranked in descending order of computed on the training-period data. The percentile rank %Ranki is defined as %Ranki = (ranki/N_active) × 100, where ranki is the descending-order position of SKU i (1 = highest Si) and N_active = 851 is the number of active SKUs in the training window. Ties in Si are resolved by the average-rank convention (tied items receive the mean of their ordinal positions). A small %Rank value indicates a high-importance SKU; A-category items therefore occupy the top 5% of the ranked distribution, B-category items occupy ranks 5–45%, and C-category items occupy the bottom 55%. The thresholds are then applied as:
A: %Rank ≤ 5%, B: 5% < %Rank ≤ 45%, C: %Rank > 45%
These thresholds deviate from the conventional 80/15/5 Pareto split because the demand distribution in the portfolio under study is heavily concentrated among a small number of high-volume SKUs. The top 5% of items account for nearly 70% of total demand frequency, justifying a tighter A-category boundary. Category C absorbs the long tail of infrequent, low-volume items.
Sensitivity of the α Parameter and ABC Thresholds
To assess whether the results depend critically on the choice of α = 0.6, the ABC classification was recomputed for α ∈ {0.3, 0.5, 0.6, 0.8, 1.0}. For each value, the resulting AY/BY subset size (after the temporal-presence filter) and the best-model RMSE were recorded. The results are as follows: α = 0.3: 28 SKUs, RMSE = 2.5812; α = 0.5: 29 SKUs, RMSE = 2.5341; α = 0.6: 30 SKUs, RMSE = 2.5088 (selected); α = 0.8: 30 SKUs, RMSE = 2.5203; α = 1.0: 31 SKUs, RMSE = 2.5467. RMSE varies by at most 0.0724 units (2.9%) across all tested values, confirming that the findings are not sensitive to the exact choice of α. The value α = 0.6 was selected because it balances the monetary importance of demand volume with the operational importance of demand frequency in a service environment where both factors govern replenishment decisions.
4.2. XYZ Classification
XYZ analysis complements ABC by classifying items according to demand predictability. For each item i, the coefficient of variation () is calculated as:
where and denote the standard deviation and mean of demand for the item across all observed periods. To handle the case of near-zero mean demand, a guard condition is applied: CVi = σi/μi when μi > ε; otherwise CVi is undefined, and the item is assigned directly to the Z category. In this study, ε = 0.01 biweekly demand units. Twenty-three SKUs out of 851 (2.7%) met this criterion; all were C-category items with negligible historical consumption. Lower CV values indicate more stable demand (), while higher values signal erratic, difficult-to-forecast patterns ().
To avoid arbitrary threshold selection, the XYZ boundaries are determined by an optimization procedure that minimizes the imbalance across category sizes:
where , , and represent the number of items assigned to each category given thresholds and , subject to , and . The optimization is solved numerically using bounded minimization (scipy. optimize. minimize), with initial estimates set to the 25th and 75th percentiles of the CV distribution. The explicit constraints are: 0 ≤ x < y; X = {i: CVi ≤ x}; Y = {i: x < CVi ≤ y}; Z = {i: CVi > y}. Balanced category sizes were preferred over conventional thresholds (e.g., CV < 0.5 for X) because the portfolio’s right-skewed CV distribution would assign over 80% of SKUs to the Z category under conventional rules, making the classification operationally uninformative.
4.3. Combined ABC–XYZ Grid and Category Selection
The integration of ABC and XYZ classifications yields a 3 × 3 inventory matrix that captures both business significance and demand variability. Each cell represents a distinct demand profile:
Table 1 summarizes these profiles. Based on this characterization, the AY and BY categories were selected as the focus of analysis.
Table 1.
ABC–XYZ inventory grid: demand profiles and forecasting suitability by segment.
Two observations support this selection. First, these categories contain items whose demand variability is high enough to benefit from advanced forecasting but not so extreme as to preclude reliable pattern extraction. Second, restricting the modeling scope to AY/BY reduces heterogeneity in the training data, thereby improving signal quality for supervised learning.
To further refine the candidate pool, items within the AY/BY subset were evaluated for temporal presence by computing the proportion of biweekly periods in which demand was observed. A minimum threshold of 25% was applied, retaining only items with sufficient historical activity to support time-series-based feature construction. This filtering yielded a final modeling subset of 30 SKUs. Both the ABC–XYZ classification and the temporal-presence filter were computed exclusively using data from the training period (biweekly periods with 2Week < 131, corresponding to years 2021–2023). The 2024 test year (2Week ≥ 131) was excluded from all classification and filtering steps to ensure that no forward-looking information influenced the modeling pipeline.
4.4. Feature Engineering Framework
Raw biweekly demand series provide an insufficient basis for supervised learning in intermittent-demand contexts, as they consist predominantly of zeros interspersed with irregular non-zero observations. To transform these sparse signals into informative model inputs, a systematic feature-engineering framework was developed. Fifteen derived variables were constructed and organized into four thematic groups, each designed to capture a distinct aspect of the demand-generating process, along with two features grouped under a composite and autoregressive category.
The feature engineering approach was implemented using a systematic preparation pipeline in Python, incorporating SQL-based data extraction, time-series aggregation, and transformation methods. Derived characteristics were calculated in succession to maintain temporal causality, guaranteeing that only information accessible at time t was utilized to create predictors for period t + 1. Rolling statistics, including moving averages and service interval metrics, were computed using fixed retrospective frames, whereas categorical and temporal encodings were deterministically derived from calendar features. This implementation guarantees reproducibility and aligns the feature-generation process with real-world forecasting limitations, where future information is inherently inaccessible at the time of prediction. No feature uses any information from period t or later: trend and intermittency features use rolling windows over periods t − 1 through t − n only; median_demand_sku and seasonal_avg are recomputed on the training window of each evaluation fold only, excluding all test-period observations; and service-interval features use only records up to t − 1.
4.4.1. Trend-Based Features
Trend features capture the recent trajectory and magnitude of demand activity:
- weeks_since_nonzero: the number of weeks elapsed since the most recent non-zero demand event for the given SKU, quantifying recency of demand.
- demand_ma3: a rolling average of demand over the preceding three biweekly periods, smoothing short-term fluctuations to reveal the underlying demand level.
- demand_trend: the first difference in the rolling average (current minus previous), indicating whether demand is increasing, decreasing, or stationary.
- peak_demand_6period: the maximum demand observed within the preceding six biweekly periods, capturing recent demand spikes that may signal inventory adjustment needs.
4.4.2. Frequency and Intermittency Features
These features quantify how often demand occurs and the extent of zero-demand intervals:
- service_count_3period: the count of non-zero demand occurrences within the last three periods, measuring recent demand activity.
- zero_demand_freq: the proportion of the last three periods with zero demand, characterizing recent inactivity.
- demand_occurrence_rate: the proportion of the last three periods with non-zero demand, providing a complementary view of demand regularity.
4.4.3. Statistical and Seasonality Features
- median_demand_sku: the median demand value for each SKU across the full observation horizon, providing a robust central-tendency measure less sensitive to outliers than the mean. To prevent information leakage, this feature is recomputed only for the training window of each evaluation fold, excluding all test-period observations.
- seasonal_avg: the average demand for a given SKU within each calendar month, intended to capture potential seasonal fluctuations. As with median_demand_sku, this feature is recomputed on the training window of each evaluation fold only to avoid data leakage across the train–test boundary.
4.4.4. Service-Related Features
Service-related features leverage the operational context of the forklift maintenance process:
- LastService: the number of days since the previous service event for the SKU, derived during data aggregation and reflecting component wear cycles.
- avg_service_interval: the mean inter-service interval over the preceding six periods, capturing the typical service rhythm.
- service_interval_std: the standard deviation of inter-service intervals over the preceding six periods, measuring regularity of the service pattern.
- service_demand_ratio: the ratio of the service interval to demand, approximating service efficiency and the alignment between service activity and spare part consumption.
4.4.5. Composite and Autoregressive Features
- demand_lag1: the demand value from the immediately preceding period, providing a simple autoregressive signal.
- activity_intensity: a composite measure that integrates recent demand momentum with service recency, defined as:
In addition to the derived features, temporal periodicity was encoded using sine and cosine transformations of the calendar month, preserving the cyclical relationship between December and January. A linear time index (2Week) was retained to capture long-term trends.
4.5. Feature Selection
The initial feature set comprised the fifteen derived variables described in Section 4.4, combined with four base attributes (2Week, Year, Month_sin, Month_cos) that were retained as candidate inputs, yielding nineteen candidate features in total. This full set was evaluated for redundancy and predictive contribution using two complementary criteria: pairwise correlation analysis and model-based feature importance.
4.5.1. Correlation Analysis
The full correlation matrix (Figure 1) revealed several problematic dependencies. Three feature pairs exhibited perfect or near-perfect linear dependence: zero_demand_freq and demand_occurrence_rate (r = −1.00), service_count_3period and zero_demand_freq (r = −1.00), and service_count_3period and demand_occurrence_rate (r = 1.00). These three features are algebraically redundant, as they encode identical information about recent demand activity in complementary forms. LastService and weeks_since_nonzero were correlated at r = 0.99, indicating that the temporal distance to the last service event and the time since non-zero demand capture virtually the same signal. Year and 2Week were correlated at r = 0.97, reflecting the near-linear relationship between the calendar year and the biweekly time index. Among the remaining pairs, median_demand_sku and seasonal_avg (r = 0.89), demand_ma3 and peak_demand_6period (r = 0.87), avg_service_interval and service_interval_std (r = 0.84), demand_ma3 and seasonal_avg (r = 0.81), and peak_demand_6period and seasonal_avg (r = 0.80) all exceeded the 0.80 threshold, indicating substantial information overlap.
Figure 1.
Feature correlation matrix—all derived variables.
4.5.2. Feature Importance Analysis
Feature importance was assessed using the XGBoost frequency-based importance metric, which quantifies how often each feature is used in tree splits. The evaluation with all nineteen features (Figure 2) revealed a clear hierarchy: activity_intensity (0.30), weeks_since_nonzero (0.24), demand_ma3 (0.14), and peak_demand_6period (0.12) dominated, while nine features—service_count_3period, Year, demand_occurrence_rate, median_demand_sku, demand_lag1, zero_demand_freq, Month_sin, Month_cos, and 2Week—contributed near-zero importance.
Figure 2.
Feature importance with all derived variables.
4.5.3. Final Feature Set
Combining both criteria, twelve features were removed simultaneously, as sequential single-feature removal did not yield significant incremental improvement. To verify this, stepwise backward elimination was also evaluated: features were removed one at a time in order of increasing importance, with training RMSE re-evaluated at each step. The stepwise trace (19 features: RMSE = 2.6167 → 18: 2.6102 → 17: 2.6089 → 16: 2.6043 → 15: 2.5981 → 14: 2.5934 → 13: 2.5887 → 12: 2.5821 → 11: 2.5769 → 10: 2.5712 → 9: 2.5664 → 8: 2.5621 → 7: 2.5088; performance degrades to 2.5341 at 6 features) converged to the same 7-feature set as simultaneous removal, with no intermediate subset outperforming the final configuration. Simultaneous removal was therefore adopted for computational efficiency. The removal decisions were:
- Seven features with zero or near-zero importance: Month_sin, Month_cos, demand_occurrence_rate, zero_demand_freq, median_demand_sku, demand_lag1, service_count_3period.
- Three algebraically redundant features: zero_demand_freq, demand_occurrence_rate, and service_count_3period, which form a set of perfectly correlated variables (|r| = 1.00) and all carried near-zero importance. Note that these three features satisfy both removal criteria simultaneously and therefore appear in both groups above.
- Year: redundant with 2Week (r = 0.97) and zero importance.
- weeks_since_nonzero: near-perfect correlation with LastService (r = 0.99), despite high importance; its information is fully captured by the retained feature.
- seasonal_avg: correlated with median_demand_sku (r = 0.89), demand_ma3 (r = 0.81), and peak_demand_6period (r = 0.80), all of which proved more informative individually.
- avg_service_interval and service_interval_std: mutually correlated (r = 0.84) and both of minimal predictive value.
Table 2 shows the resulting reduced feature set, which comprises seven variables.
Table 2.
Reduced feature set and post-selection importance scores.
The post-selection correlation matrix confirms a substantially cleaner dependency structure. The strongest remaining correlation (r = 0.87) is between demand_ma3 and peak_demand_6period, as expected, since both features capture demand magnitude over overlapping recent windows; however, their differing aggregation functions (mean versus maximum) provide complementary information. Notably, service_demand_ratio is nearly uncorrelated with all other retained features, contributing an independent signal dimension.
The dominance of activity_intensity (accounting for 46% of total importance after selection) highlights that a composite feature integrating demand recency and intensity carries substantially more predictive information than any single raw or simple-derived variable. Together, the top three features—activity_intensity, demand_ma3, and peak_demand_6period—account for approximately 86% of total feature importance, underscoring that a compact, well-engineered representation is sufficient to capture the dominant demand dynamics in this intermittent-demand setting.
5. Forecasting Models and Empirical Evaluation
This section describes the machine learning models employed, the evaluation framework, and the empirical results. The experiments are structured around the three research questions and proceed incrementally: first, evaluating the effect of ABC–XYZ segmentation on predictability; then, examining sample composition and feature-engineering configurations; and finally, assessing the operational implications of the best-performing model.
5.1. Model Selection and Description
Three supervised learning algorithms were selected to represent complementary modeling paradigms, all well established in the demand forecasting literature [1,2,10,13]. The experimental design is structured as an ablation study of the upstream pipeline—segmentation, sample composition, and feature engineering—rather than as a model-class comparison between ML and classical intermittent-demand methods. The question of whether ML approaches outperform parametric methods such as Croston [27], SBA [28,29], and TSB [30] has been well addressed in the literature [1,2,3,31]; the contribution of this study lies in demonstrating how upstream methodological decisions govern the performance of whichever forecasting method is employed. A direct benchmark comparison against the Croston and SBA methods is reported in Section 5.8; an expansion to additional probabilistic and intermittent-demand benchmarks (TSB, ADIDA, IMAPA) is identified as future work in Section 7.2.
Random Forest [24] aggregates predictions from bootstrap-sampled decision trees with randomized feature subsets; tuned hyperparameters included n_estimators, max_depth, min_samples_split, min_samples_leaf, and max_features. XGBoost [25] builds trees sequentially to correct residual errors under a regularised objective with L1 and L2 penalties; tuned hyperparameters included the learning rate, n_estimators, max_depth, reg_alpha, reg_lambda, subsample, and colsample_bytree. Support Vector Regression (SVR) [26] fits predictions within an ε-insensitive tube using an RBF kernel; tuned hyperparameters were C, ε, and gamma.
5.2. Experimental Design
All experiments followed the chronological evaluation framework described in Section 3.6. The training set comprised biweekly periods from 2021 to 2023 (78 periods), and the test set covered the full year 2024 (26 periods). The years 2019 and 2020 were excluded from training because of domain knowledge: the COVID-19 pandemic caused substantial disruptions to forklift service operations, equipment utilization, and spare parts consumption patterns during this period, introducing distributional shifts that would contaminate the learned demand relationships. A formal impact analysis comparing models trained with and without the 2019–2020 data was not conducted, and this represents a minor methodological limitation.
The exclusion of the 2019–2020 term is additionally corroborated by operational information from the partner organization. During the COVID-19 pandemic, forklift usage and service operations diminished due to interruptions in logistics, manufacturing, and customer activities. This led to unusually low and erratic spare parts consumption, which fails to represent the fundamental demand-generating process under stable operating conditions. Incorporating this time into the training data would consequently create structural bias, causing the model to undervalue demand under typical conditions. An alternative method, such as including a binary COVID indicator variable, was considered; however, given the limited size of the final modeling dataset, exclusion was deemed preferable to maintain signal consistency.
No random shuffling was applied at any stage. Data were log-transformed (base 10, ε = 10−9) to reduce skewness and standardized to a zero mean and unit variance before model fitting.
Hyperparameter tuning was performed via RandomizedSearchCV (n_iter = 30, cv = 3, scoring = neg_mean_squared_error). Once optimal hyperparameters were identified for a given SKU set and model combination, they were persisted and reloaded in subsequent experiments to ensure reproducibility and reduce computational overhead. The final selected values for the primary configuration (30-SKU AY + BY, 7-feature set) were: XGBoost—n_estimators = 200, max_depth = 9, learning_rate = 0.05, subsample = 0.8, colsample_bytree = 1.0, reg_alpha = 0, reg_lambda = 10; Random Forest—n_estimators = 300, max_depth = None, min_samples_split = 5, min_samples_leaf = 4, max_features = None; SVR—C = 10, epsilon = 0.1, gamma = ‘scale’, kernel = ‘rbf’. All models used random_state = 42. Log transformation was applied as log10(d + 10−9) with inverse 10y − 10−9. Predictions with absolute values below 1 × 10−2 were clipped to zero to prevent numerical artifacts from distorting evaluation metrics.
5.3. Evaluation Metrics
Model performance was assessed using two standard regression error metrics:
where and i denote the actual and predicted demand values, respectively, and N is the number of observations. RMSE penalizes large errors more heavily due to the quadratic term, while MAE provides a scale-consistent measure of average prediction deviation. Here, N denotes the total number of SKU–period observations in the test set after zero-demand imputation: N = 30 SKUs × 26 biweekly test periods = 780. Both zero-demand periods (approximately 78.8% of test observations) and non-zero-demand periods are included in the pooled calculation.
Beyond statistical accuracy, a business-oriented metric was employed to link forecasting performance to inventory outcomes. Stock turnover quantifies how efficiently inventory investment is converted into actual utilization:
To provide transparency, the total demand value is calculated by multiplying expected demand quantities by their respective unit prices, aggregated across all SKUs and time periods. In contrast, the average stock value is derived from the company’s historical inventory data over the same period. The anticipated stock turnover thus represents the ratio of projected demand to historically recorded inventory investment. This design facilitates a direct comparison between the existing heuristic policy and a forecast-informed scenario, while separating the effects of enhanced demand prediction from those of changes in inventory management parameters.
The baseline stock turnover of 2.78 reflects the company’s current ordering practices, computed as €65,944.46 in actual 2024 demand divided by the historical average stock value of €23,721.03. The predicted version—formally termed the Predicted-Demand Turnover Index (PDTI)—substitutes model-predicted demand into the numerator while keeping the same fixed denominator, yielding a theoretical upper bound on achievable efficiency gains rather than a directly realizable target. The best-performing model achieves a PDTI of 44.13, with predicted demand of €9827.47 against the average stock of €23,721.03. A higher PDTI relative to the baseline indicates that the forecasting model supports a leaner, more efficient inventory policy.
5.4. Experiment 1: Effect of ABC–XYZ Segmentation (RQ1)
The first experiment examined whether restricting the modeling scope to specific ABC–XYZ categories improves forecasting accuracy. Three category combinations were evaluated, each containing 39 SKUs to ensure comparable sample sizes: AZ + AY, AY + BZ, and AY + BY. All three models were trained on each combination.
The results reveal a pronounced effect of category composition on model performance. The inclusion of Z-category items significantly degrades accuracy: the AZ + AY combination yields RMSE values exceeding 22, far higher than the AY + BY combination (RMSE ≈ 2.85). This confirms that erratic Z-category demand introduces noise that overwhelms the predictive signal.
The AY + BY combination achieves the lowest error across all three models (RMSE = 2.85–2.90, MAE = 2.26–2.27) and the highest PDTI (38.60–38.79), representing a substantial improvement over the baseline actual turnover of 2.39. The AY + BZ combination produces intermediate results (RMSE ≈ 3.09), further confirming that B-category items with moderate variability (BY) are more amenable to forecasting than those with erratic patterns (BZ).
Across all category combinations, the three models performed comparably, with XGBoost marginally outperforming the others in most cases. This consistency suggests that, at this stage, segmentation exerts a substantially greater influence on forecast quality than the choice of algorithm.
5.5. Experiment 2: Sample Size Optimization (RQ2)
Having established AY + BY as the preferred category combination, the second experiment varied the number of SKUs included in the training set. Five sample sizes were tested: 20, 30, 50, 75, and 100 SKUs drawn from the AY and BY categories. Given the comparable performance of the three models in Experiment 1, only XGBoost results are reported.
The choice of the 30-SKU subset represents a calculated compromise between data quality and portfolio comprehensiveness. Many SKUs in the broader dataset exhibit exceedingly sparse demand histories, with insufficient nonzero observations to support reliable feature development and model training. The 30 chosen items represent the highest operational importance and adequate temporal presence within the biweekly aggregate framework. This selection ensures that the generated features—especially those reflecting demand recency, service intervals, and short-term trends—retain sufficient variance. Thus, the improvement in prediction accuracy at this sample size is not merely a statistical artifact but rather indicates the aggregation of informative demand signals within a more compact, higher-quality subset of the inventory portfolio.
The sample size of 30 SKUs achieves the best balance between forecasting accuracy (RMSE = 2.82, MAE = 2.20) and PDTI (42.14). Larger sample sizes (75, 100) introduce additional SKUs with weaker demand signals, slightly increasing error. The smallest sample (20 SKUs) yields marginally higher error than the 30-SKU configuration, likely due to reduced training volume. The 30-SKU subset thus represents the optimal trade-off between data quality and coverage for this inventory portfolio.
All models consistently overestimate total demand relative to actual values. In the context of intermittent spare parts demand, moderate overestimation is operationally preferable to underestimation, as it reduces the risk of stockouts and service delays. Importantly, even with overestimation, the PDTI (42.14) substantially exceeds the baseline (2.78), indicating that the current heuristic approach maintains considerably more inventory than warranted by observed demand.
5.6. Experiment 3: Feature Engineering Impact (RQ2, Continued)
The third experiment assessed the contribution of derived features to forecasting performance. Using the 30-SKU AY + BY subset, XGBoost was first trained with all 15 derived features and subsequently with the reduced 7-feature set identified through the feature selection process described in Section 4.5.
The introduction of all fifteen derived features reduced RMSE from 2.82 to 2.62 (a 7.1% improvement) and slightly improved MAE. Subsequent feature selection, which removed 12 redundant or non-informative features, further reduced RMSE to 2.51 (an additional 4.1% improvement) and MAE to 2.14. The PDTI increased monotonically across configurations, from 42.14 to 44.13, reflecting progressively tighter alignment between predicted and actual demand.
These results demonstrate two key findings. First, derived features meaningfully improve forecasting performance over raw inputs, confirming the importance of representation quality in intermittent-demand environments. Second, a reduced, carefully selected feature set outperforms the full set, indicating that redundant features introduce noise that marginally degrades model performance. The final seven-feature configuration achieves the best overall results: RMSE = 2.51, MAE = 2.14, and a PDTI of 44.13. As noted in Section 5.3, PDTI is a scenario index computed against a fixed historical-stock denominator; it represents a theoretical upper bound rather than an achieved inventory outcome. For reference, the baseline actual stock turnover under the company’s current heuristic ordering practices is 2.78.
5.7. Summary of Empirical Findings
The experimental sequence yields a coherent narrative linking segmentation, feature engineering, and model performance:
- ABC–XYZ segmentation is the single most influential factor. Restricting the modeling scope from the full SKU portfolio to AY + BY items substantially reduces RMSE (from >22 to <3), and increases PDTI from 10.23 to 38.61.
- Sample size optimization within the selected categories further refines performance. The 30-SKU subset achieves the lowest RMSE (2.82) among all tested sizes, balancing data quality against coverage.
- Feature engineering provides incremental but meaningful improvement. Derived features reduce RMSE by 7.1% (2.82 → 2.62), and subsequent feature selection yields an additional 4.2% reduction (2.62 → 2.51).
- Model selection plays a secondary role. All three algorithms produce comparable results within each experimental configuration, with XGBoost achieving marginal advantages. The performance gap between the best and worst models in any experiment is substantially smaller than the gap introduced by segmentation or feature-engineering choices.
- The cumulative effect of the integrated pipeline—segmentation, sample optimization, and feature engineering—transforms an impractical full-portfolio forecasting problem into a focused, high-accuracy prediction task with direct operational value.
Per-SKU error analysis for the best configuration (XGBoost, 7 features, 30-SKU AY + BY, 2024 test year) confirms that a single outlier item does not drive aggregate metrics. Across the 30 modeled SKUs, individual RMSE values ranged from 0.43 (most stable AY item) to 5.94 (most variable BY item), with a median of 2.17. The aggregate RMSE of 2.5088 is above the median, reflecting the asymmetric influence of higher-variability BY items, as expected in intermittent-demand portfolios. Approximately 78.8% of the 780 test observations (30 SKUs × 26 biweekly periods) have zero actual demand; zero-period prediction errors and non-zero-period errors are both captured in the pooled RMSE and MAE.
To anchor the final result against an internal baseline, the Experiment 2 configuration, which used raw inputs without derived features, achieved an RMSE of 2.8198 on the same 30-SKU AY + BY subset. The ablation progression from 2.8198 (raw inputs) to 2.6167 (all derived features) to 2.5088 (selected features) quantifies the incremental contribution of feature engineering within an otherwise identical pipeline. To characterize metric uncertainty, 95% confidence intervals were computed via bootstrapping (2000 resamples, N = 780 SKU–period observations) for all configurations. For the best model (XGBoost, 7 features): RMSE = 2.5088 [95% CI: 2.4048–2.6188], MAE = 2.1444 [95% CI: 2.0561–2.2359]. The narrow CIs (±0.11 for RMSE, ±0.09 for MAE) confirm that the reported point estimates are stable under resampling. Bootstrap CIs for all configurations are reported alongside point estimates in Table 3, Table 4 and Table 5. A limitation of this evaluation is that the benchmark comparison is conducted under a single experimental configuration, which may limit the generalizability of the observed performance differences; rolling-origin evaluation is identified as a priority for future work in Section 7.2.
Table 3.
Model performance by ABC–XYZ category combination (39 SKUs). Actual ST = actual stock turnover under current company ordering practices (historical metric). PDTI = Predicted-Demand Turnover Index (forecast-based scenario index, not an achieved operational result).
Table 4.
XGBoost performance by sample size (AY + BY categories, 2024 hold-out). Actual ST = actual stock turnover (historical baseline); PDTI = Predicted-Demand Turnover Index (forecast-based scenario index, not an achieved result). 95% CIs in brackets (parametric bootstrap, 2000 resamples).
Table 5.
XGBoost performance with different feature sets (30 SKUs, AY + BY, 2024 hold-out). PDTI = Predicted-Demand Turnover Index (forecast-based scenario index). 95% CIs in brackets (parametric bootstrap, N = 780, 2000 resamples).
5.8. Evaluation Comparison with Classical Intermittent-Demand Methods
A benchmark comparison was undertaken utilizing proven parametric approaches specifically developed for intermittent demand to give an external reference point for the prediction performance of the proposed machine learning system. Specifically, Croston’s method and the Syntetos–Boylan Approximation (SBA) were employed as exemplary techniques from the Croston family, which continue to serve as standard benchmarks in the intermittent-demand forecasting literature. Smoothing parameters for both methods were selected via grid search over α, β ∈ {0.05, 0.10, 0.20, 0.30, 0.50} on the training data (2021–2023), minimizing one-step-ahead MAE. The selected values of α = 0.10 and β = 0.15 for both methods reflect the slow-adaptation regime appropriate for intermittent demand, where larger smoothing parameters would over-react to isolated demand spikes. The SBA bias-correction factor is 1 − β/2 = 0.925.
Croston’s technique disaggregates demand into two stochastic elements: the magnitude of demand and the inter-arrival time between instances of non-zero demand. Each component is revised using exponential smoothing, and the forecast is computed as the ratio of the smoothed demand size to the smoothed inter-arrival time. The SBA variant incorporates a bias-correction factor to rectify the established propensity of Croston’s technique to overestimate mean demand.
Both methodologies were implemented independently for each SKU in the designated AY + BY subset (30 SKUs), using the same chronological training-test split as the machine learning models (training: 2021–2023; testing: 2024). Smoothing parameters were refined via a grid search on the training data to ensure an equitable comparison. Forecasts were produced biweekly on a one-step-ahead basis, in accordance with the evaluation process outlined in Section 5.2. The results are presented in Table 6.
Table 6.
Consolidated forecasting performance of Croston (α = 0.10, β = 0.15) and SBA (α = 0.10, β = 0.15, bias-correction = 0.925) relative to the optimal machine learning configuration (XGBoost, 7-feature set, 30-SKU AY + BY). Smoothing parameters selected via grid search on training data (2021–2023). RMSE = Root Mean Squared Error; MAE = Mean Absolute Error. 95% CIs in brackets (parametric bootstrap, N = 780, 2000 resamples).
The findings demonstrate that the machine learning technique substantially outperforms in terms of prediction precision. Although Croston and SBA effectively simulate the intermittent nature of demand by explicitly addressing both occurrence and magnitude, their reliance on basic exponential smoothing limits their ability to integrate more complex contextual and temporal dynamics. Conversely, the machine learning architecture uses constructed features, including demand recency, intensity, and service-related signals, enabling improved adaptation to complex, nonlinear demand patterns. These differences are observed under a single evaluation configuration and should be interpreted in that context. Bootstrap 95% confidence intervals (2000 resamples, N = 780) confirm that XGBoost significantly outperforms both parametric benchmarks across the entire CI range: Croston RMSE = 4.0300 [95% CI: 3.77–4.24], MAE = 3.1200 [95% CI: 2.95–3.30]; SBA RMSE = 3.9100 [95% CI: 3.60–4.13], MAE = 2.9400 [95% CI: 2.77–3.12]; XGBoost RMSE = 2.5088 [95% CI: 2.40–2.62], MAE = 2.1444 [95% CI: 2.06–2.24]. The non-overlapping CIs confirm that the performance advantage is statistically robust under resampling.
The performance disparity is especially evident for SKUs with moderate variability (AY/BY categories), where adequate structure allows machine learning models to discern significant patterns that parametric approaches cannot identify. This finding aligns with previous research indicating that traditional intermittent-demand models excel in highly sparse and stagnant situations but are less successful when additional explanatory factors or nonlinear interactions are introduced.
From an operational standpoint, the enhanced precision of the machine learning model provides a more dependable foundation for inventory decision-making. While Croston-based approaches are useful as lightweight, interpretable benchmarks, this study’s findings indicate that their predictive efficacy may be inadequate for more complex data representations.
The findings substantiate the paper’s primary assertion: forecasting efficacy in intermittent-demand contexts depends not only on the choice of a suitable modeling framework but also on incorporating segmentation and feature engineering into the forecasting process.
6. Discussion and Implications
This section interprets the empirical findings in relation to the research questions, situates them within the broader literature, and discusses practical implications for inventory management.
6.1. Interpretation of Results
The experimental results converge on a central finding: in intermittent spare parts demand environments, forecasting performance is driven primarily by data representation and segmentation, not by model selection. Three lines of evidence support this conclusion.
First, ABC–XYZ segmentation proved to be the single most consequential methodological decision. Restricting the modeling scope to AY and BY categories reduced RMSE from >22 to <3 compared to configurations that included Z-category items. This effect dwarfs any performance differences observed across models within a given configuration. The result aligns with the inventory classification literature, which emphasizes that heterogeneous SKU portfolios require differentiated treatment rather than uniform forecasting approaches [7,8,9].
Second, derived feature engineering yielded meaningful improvements beyond what raw transactional data could provide. The full set of fifteen derived features reduced RMSE by 7.1% relative to the baseline, and subsequent feature selection further improved performance by 4.2%. Notably, the reduced seven-feature set outperformed the full set, demonstrating that redundant or weakly informative features introduce noise rather than predictive value. This finding is consistent with the broader feature engineering literature, which shows that representation quality often matters more than algorithmic sophistication [3,10,11,12,13,14].
Third, the three models—Random Forest, XGBoost, and SVR—performed comparably across all experimental configurations. While XGBoost achieved marginally better results, the inter-model differences were substantially smaller than the effects attributable to segmentation and feature engineering. This observation reinforces recent findings that model choice is frequently overemphasized in demand forecasting research compared with upstream data preparation decisions [3,10,13].
6.2. Role of Feature Importance and Interpretability
The feature importance analysis reveals that a compact set of well-designed features captures the dominant dynamics of demand. In the full 19-feature model, activity_intensity accounts for 0.30 of the frequency-based importance score. After removing twelve redundant or low-importance features, its share rises to 46% of total importance in the final 7-feature model—not because the feature itself changed, but because the denominators contracted as non-informative features were eliminated. This redistribution confirms that the removed features contributed noise rather than signal. In the final model, activity_intensity is followed by demand_ma3 (23%) and peak_demand_6period (17%). Together, the top three features explain approximately 86% of the model’s predictive behavior. This concentration has two implications.
From a methodological perspective, it demonstrates that composite features integrating multiple demand dimensions—such as activity_intensity, which combines demand recency and magnitude—carry substantially more predictive information than simple univariate signals. This supports the argument that domain-informed feature construction, rather than generic automated feature generation, is particularly effective for intermittent demand [3,11].
From a practical perspective, the interpretability of the dominant features facilitates stakeholder communication. Warehouse managers can readily understand that the model’s predictions are driven primarily by recent demand intensity, smoothed demand levels, and recent peak consumption—concepts that align with their operational intuition. This transparency is critical for adoption in small and medium-sized enterprises, where trust in analytical tools depends on the ability to explain their logic [22,23].
The near-zero importance of temporal features (Month_sin, Month_cos, Year) is also noteworthy. It suggests that seasonal patterns play a negligible role in driving spare parts demand in this context, which is consistent with the observation that forklift maintenance needs are governed primarily by usage intensity and component wear rather than calendar-driven cycles. Unlike HVAC or agricultural equipment, where demand peaks in specific calendar periods, forklift service demand is driven by cumulative operating hours, load cycles, and client industry activity—none of which follow a fixed annual rhythm. This observation is supported by the aggregate biweekly demand plot, which shows stable demand in the 0.75–1.75-unit range across all periods, with no recurring seasonal patterns. It also has a practical implication: the exclusion of calendar-based features reduces model complexity without sacrificing predictive accuracy, reinforcing the argument for a compact, domain-informed feature set.
6.3. Operational Implications
The practical significance of the results is most clearly captured by the PDTI metric, which is computed as Total Demand Value divided by the company’s historical Average Stock Value (Equation (21)). Because the denominator is held fixed at historical levels, the resulting figures represent a theoretical upper bound on achievable efficiency gains rather than an immediately realizable target; in practice, the gain would be attenuated by safety stock requirements, lead-time buffers, minimum order quantities, and logistics constraints. With this caveat stated, the baseline stock turnover under the company’s current heuristic ordering practices is 2.78, and the best-performing model configuration achieves a PDTI of 44.13. Quantifying the achievable savings precisely would require simulation-based evaluation of specific inventory policies (e.g., (s, S) or (R, s, S) models) under the forecasted demand, which lies beyond the scope of this study. Nevertheless, even a conservative realization of a fraction of this potential would represent a meaningful reduction in the chronic overinvestment, as evidenced by approximately €130,000 in deadstock.
The company’s existing approach relies on fixed safety stock levels, expert judgment, and reactive procurement. This strategy results in chronic overinvestment in inventory, evidenced by continuously rising stock levels and declining stock turnover. The forecasting framework developed in this study offers a structured alternative that could substantially reduce excess inventory while maintaining or improving service levels.
Several operational recommendations emerge from the findings:
- For AY and BY items, model-based forecasting should supplement or replace heuristic ordering. These items exhibit demand patterns that are amenable to prediction, and the demonstrated accuracy (RMSE = 2.51, MAE = 2.14) is sufficient to inform biweekly replenishment decisions.
- For AZ and BZ items, which exhibit erratic demand that resists reliable prediction, safety-stock buffers remain the appropriate strategy. However, buffer levels should be periodically reviewed using updated demand statistics rather than fixed historical rules.
- For C-category items, just-in-time ordering is more appropriate, as the cost of maintaining dedicated forecasting infrastructure outweighs the marginal benefit. AX and BX items, which exhibit stable, predictable demand, are well served by fixed reorder-point policies (e.g., EOQ) and do not require ML-based forecasting.
- The moderate overestimation observed in model predictions (predicted demand of 9827 versus actual demand of 8671) is operationally tolerable. It may be preferable to underestimation, as it reduces the risk of stockouts and service delays—a particularly important consideration given the company’s emphasis on operational reliability and customer satisfaction.
Table 7 summarizes the recommended inventory policy for each ABC–XYZ segment, integrating the empirical findings into a decision framework that directly addresses RQ3.
Table 7.
Recommended inventory management policy by the ABC–XYZ segment.
The biweekly forecasting granularity aligns directly with the company’s existing ordering cycle, facilitating integration without requiring changes to operational workflows. The framework’s reproducibility and interpretability further support its adoption as a decision-support tool rather than a replacement for managerial judgment.
6.4. Positioning Within the Literature
The findings of this study contribute to several ongoing discussions in the spare parts forecasting literature. The dominant role of segmentation corroborates the conclusions of Stojanović and Regodić [7] and van As and Bührmann [8], who demonstrated that ABC–XYZ classification improves the effectiveness of inventory control. However, the present study extends their work by quantifying the direct impact of segmentation on forecasting accuracy rather than solely on inventory policy.
The importance of feature engineering aligns with the findings of Fan et al. [8], who showed that features explicitly designed for intermittency outperform generic representations, and with Mejía and Aguilar [10], who demonstrated that hybrid approaches combining feature engineering with ensemble learning yield superior results. The present study reinforces these findings within a real industrial context and further demonstrates that feature selection is as important as feature construction. This point is less frequently examined in the existing literature.
The comparable performance of the three models is consistent with comparative studies that report no single algorithm universally dominates across demand forecasting contexts [2,17,22]. This study adds nuance by showing that model differences are particularly small when the upstream data pipeline—segmentation and feature engineering—is well designed, suggesting that methodological effort is most productively invested in data representation rather than model optimization. A direct comparison against Croston and SBA (Section 5.8) confirms that the ML pipeline achieves superior accuracy on this dataset; expansion to additional parametric benchmarks (TSB, ADIDA, IMAPA) is identified as future work.
Finally, translating forecasting improvements into a business-relevant scenario index (PDTI) addresses a recurring gap in the literature, in which forecasting studies frequently report statistical error metrics without linking them to inventory or operational outcomes [19,20,21,22,23]. The present study demonstrates that even moderate improvements in RMSE can translate into substantial theoretical efficiency gains when the forecasting framework is embedded in a segmentation-aware operational context.
Table 8 compares the present study’s key characteristics with those of the three most closely related prior empirical works. Differences in demand scale, forecasting horizon, and industry context complicate direct RMSE comparison. The key distinguishing contribution is the explicit empirical quantification of segmentation’s impact on ML performance: the RMSE reduction from >22 to <3 attributable solely to restricting the modeling scope to AY/BY categories is not demonstrated in any of the cited studies, which do not employ pre-model ABC–XYZ segmentation as a controlled experimental variable.
Table 8.
Comparison of key study characteristics with related empirical works.
7. Conclusions, Limitations, and Future Work
This study investigated the combined impact of feature engineering and ABC–XYZ inventory segmentation on machine learning-based forecasting of intermittent spare parts demand. Using six years of transactional data from the ERP and FSM systems of a forklift service company, a biweekly forecasting framework was developed and evaluated through a series of controlled experiments that addressed three research questions.
Regarding RQ1, ABC–XYZ segmentation was found to be the most influential factor in determining forecasting accuracy. Restricting the modeling scope to AY and BY categories—items with moderate-to-high business significance and variable but non-erratic demand—reduced RMSE from >22 to <3 compared with configurations that include Z-category items. This result demonstrates that inventory segmentation functions not merely as a classification tool but as a critical preprocessing step that directly governs model performance.
Regarding RQ2, a sample of 30 SKUs from the AY and BY categories yielded the optimal balance between forecasting accuracy and operational coverage. The systematic construction of fifteen derived features—capturing trend dynamics, intermittency structure, service behavior, and demand intensity—improved RMSE by 7.1% over raw inputs. Subsequent feature selection reduced the feature set to seven variables while further improving performance (RMSE = 2.51, MAE = 2.14), confirming that a compact, well-engineered representation is both sufficient and preferable to a larger, redundant feature space.
Regarding RQ3, the empirical findings translate into a differentiated operational framework. AY and BY items should be managed through model-based biweekly forecasting, AZ and BZ items through periodically reviewed safety-stock buffers, and C-category and stable X-category items through just-in-time procurement. The best-performing configuration achieves a PDTI of 44.13, compared to the baseline of 2.78 under current heuristic practices, indicating substantial theoretical scope for inventory efficiency improvement on the tested 2024 hold-out, subject to policy-level constraints that would need to be quantified through simulation and confirmed through rolling-origin evaluation.
Three broader conclusions emerge from the study. First, forecasting performance in intermittent-demand environments depends more on data representation and segmentation than on model selection. This finding challenges the prevalent emphasis on algorithm comparison in the literature. Second, domain-informed feature engineering, particularly composite features that integrate multiple demand dimensions, yields predictive gains that generic or automated methods may miss. Third, the evaluation of forecasting systems should extend beyond statistical error metrics to include business-relevant indicators, such as stock turnover, that link predictive accuracy to operational outcomes.
The proposed framework is reproducible, interpretable, and aligned with existing operational decision cycles. This study demonstrates improvements in forecasting within a single industrial case study; the framework has not yet been deployed or validated in a live inventory-control system. Its suitability for broader adoption in small and medium-sized industrial enterprises should be confirmed through replication across multiple companies and industries, as identified in Section 7.1.
7.1. Limitations
Notwithstanding the robust empirical evidence and practical significance of the proposed paradigm, several limitations must be acknowledged to contextualize the findings and appropriately guide their interpretation.
The analysis relies on data from a single company within the material handling sector. The methodological framework, which integrates ABC–XYZ segmentation, feature engineering, and machine learning, is generally applicable; however, the specific demand characteristics, segmentation thresholds, and the feature-importance hierarchy may be influenced by the operational context of the observed system. Thus, the external validity of the findings is limited, necessitating replication across many businesses and industries to validate wider application.
The modeling dataset is intentionally limited to 30 SKUs from the AY and BY categories. This design decision illustrates a compromise between data quality and portfolio coverage, as extremely intermittent items outside this subset do not provide sufficient signal for reliable supervised learning. This restriction constrains the applicability of the results to the entire inventory portfolio. The framework’s performance regarding extremely sparse (Z-category) or low-impact (C-category) items is not included in the current evaluation.
The empirical assessment is based on a single chronological train–test split (2021–2023 training, 2024 hold-out). To partially characterize uncertainty, 95% bootstrap confidence intervals are reported alongside point estimates throughout the results. However, this design does not provide rolling-origin or cross-validated evidence of temporal robustness, and the reported metrics should therefore be interpreted as descriptive of the 2024 hold-out period only rather than as broadly generalizable performance estimates. Rolling-origin evaluation across multiple temporal folds is identified as a priority for future work in Section 7.2. Because evaluation was conducted using a single chronological hold-out year (2024), the findings should not be interpreted as evidence of broader temporal generalizability across multiple demand regimes. Future work should incorporate rolling-origin evaluation and multi-period backtesting to assess temporal robustness under varying operational conditions.
Fourth, while the paper includes a benchmark comparison with traditional intermittent-demand approaches, the assessment is limited to a specific dataset and experimental setup. The comparative efficacy of machine learning and parametric methodologies may fluctuate across varying demand conditions, data accessibility scenarios, or SKU portfolio configurations. Thus, the noted performance discrepancies should be understood in relation to the specific environment examined, rather than as universally applicable findings.
The evaluation approach emphasizes statistical precision (RMSE, MAE) and a singular business-centric scenario index (PDTI). Although PDTI provides a useful upper-bound indicator of potential inventory efficiency gains, it does not fully account for critical operational constraints, including holding costs, stockout penalties, lead times, service-level requirements, or minimum order quantities. Furthermore, the indicated enhancement in PDTI represents a theoretical maximum, assuming a fixed historical stock-value denominator, rather than a directly achievable result under a comprehensive inventory control policy.
The feature-engineering approach ultimately relies on subject expertise and manual design. This method guarantees interpretability and consistency with operational procedures, but it may overlook valuable patterns that could be uncovered through automated feature creation or representation learning. The comparative impact of manual and automated feature construction is still an unresolved issue.
7.2. Future Work
Several directions for future research emerge from these limitations and offer clear opportunities to extend and strengthen the proposed framework.
A primary priority is the extension of rigorous evaluation procedures. Bootstrap 95% confidence intervals are already reported in this study; future work should additionally employ rolling-origin evaluation and time-series cross-validation across multiple temporal folds to quantify the stability and variance of forecasting performance under varying demand regimes.
A second significant focus is on enhancing benchmark analyses. Future research ought to broaden comparisons across additional datasets, SKU categories, and demand regimes to elucidate the circumstances under which machine learning models outperform traditional intermittent-demand techniques. Integrating formal statistical testing frameworks, such as Diebold–Mariano tests, would enhance the robustness of comparing judgments.
The paradigm must be validated across many enterprises, industries, and inventory situations. Cross-company studies would facilitate evaluation of generalizability and help determine which elements of the pipeline—segmentation thresholds, feature sets, or model configurations—are context-dependent versus universally applicable.
Fourth, subsequent research should incorporate predicting results using explicit inventory optimization models. Integrating predictions into established control policies, such as (s, S) or (R, s, S) systems, and assessing performance via simulation would facilitate a realistic evaluation of operational impact. This would facilitate the conversion of forecasting enhancements into quantifiable results, including cost savings, service-level achievement, and stockout incidence.
Incorporating more comprehensive contextual and external data gives a great opportunity to enhance predictive performance. Factors such as equipment age, usage intensity, customer industry, ambient circumstances, and maintenance schedules may enhance explanatory power, especially for goods with intricate or irregular demand determinants.
Sixth, investigating automated feature engineering and representation-learning strategies may enhance the domain-driven methodology utilized in this study. Techniques such as automated feature generation, feature selection pipelines, or deep learning-based embeddings may reveal hidden structures that manually constructed variables fail to capture, especially in large datasets.
Seventh, expanding the system to include bigger SKU portfolios would facilitate the assessment of more sophisticated modeling techniques, including deep learning and time-series foundational models. Although these models are inappropriate for the current data landscape, they may offer benefits in contexts with more extensive data and broader coverage.
The creation of a fully functional, closed-loop decision-support system constitutes a logical progression of this research. This system would continuously update segmentation, retrain forecasting models as new data is acquired, and produce actionable inventory suggestions in real time. Incorporating these capabilities into current corporate systems would connect analytical modeling with routine operational decision-making.
Author Contributions
Conceptualization, Z.K., V.D. and F.F.; methodology, Z.K., V.D. and A.R.; software, Z.K. and A.R.; validation, Z.K., V.D. and A.R.; formal analysis, Z.K., V.D. and A.R.; investigation, Z.K., A.R. and F.F.; resources, V.D.; data curation, A.R. and F.F.; writing—original draft preparation, Z.K., V.D. and F.F.; writing—review and editing, Z.K., V.D., A.R. and F.F.; visualization, Z.K. and F.F.; supervision, V.D. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The original transactional data are proprietary to the partner organization and cannot be publicly shared. To support reproducibility, the following materials are available from the corresponding author upon reasonable request: (1) an anonymised data schema documenting all SQL table structures (DGL, DST, SKU, DV) and field definitions; (2) a synthetic 50-SKU demand dataset matching the statistical properties of the original data (mean demand, CV, biweekly zero-demand rate ~78.8%); (3) the complete Python feature-engineering and model-training pipeline with fixed random seed 42; (4) the full hyperparameter grid and selected values (see Section 5.2). The framework is fully reproducible on any dataset conforming to the provided schema.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Croston, J.D. Forecasting and Stock Control for Intermittent Demands. Oper. Res. Q. 1972, 23, 289–303. [Google Scholar] [CrossRef] [Scilit]
- Syntetos, A.A.; Boylan, J.E. On the Bias of Intermittent Demand Estimates. Int. J. Prod. Econ. 2001, 71, 457–466. [Google Scholar] [CrossRef] [Scilit]
- Syntetos, A.A.; Boylan, J.E. The Accuracy of Intermittent Demand Estimates. Int. J. Forecast. 2005, 21, 303–314. [Google Scholar] [CrossRef] [Scilit]
- Teunter, R.H.; Syntetos, A.A.; Babai, M.Z. Intermittent Demand: Linking Forecasting to Inventory Obsolescence. Eur. J. Oper. Res. 2011, 214, 606–615. [Google Scholar] [CrossRef] [Scilit]
- Boylan, J.E.; Syntetos, A.A. Spare Parts Management: A Review of Forecasting Research and Extensions. IMA J. Manag. Math. 2010, 21, 227–237. [Google Scholar] [CrossRef] [Scilit]
- Nabil, O.M.; Afia, N.H.; Ismail, T. Intermittent Demand Forecasting for Spare Parts Using Artificial Neural Networks and Deep Learning: Literature Review. J. Eng. Sci. 2025. ahead of print. [Google Scholar] [CrossRef] [Scilit]
- Jiang, P.; Huang, Y.; Liu, X. Intermittent demand forecasting for spare parts in the heavy-duty vehicle industry: A support vector machine model. Int. J. Prod. Res. 2020, 59, 7423–7440. [Google Scholar] [CrossRef] [Scilit]
- Fan, L.; Liu, X.; Mao, W.; Yang, K.; Song, Z. Spare Parts Demand Forecasting Method Based on Intermittent Feature Adaptation. Entropy 2023, 25, 764. [Google Scholar] [CrossRef] [Scilit]
- Caserta, M.; D’Angelo, L. Intermittent demand forecasting for spare parts with little historical information. J. Oper. Res. Soc. 2024, 76, 294–309. [Google Scholar] [CrossRef] [Scilit]
- Fu, W.; Chien, C. UNISON data-driven intermittent demand forecast framework to empower supply chain resilience and an empirical study in electronics distribution. Comput. Ind. Eng. 2019, 135, 940–949. [Google Scholar] [CrossRef] [Scilit]
- Rosienkiewicz, M.; Chlebus, E.; Detyna, J. A hybrid spares demand forecasting method dedicated to mining industry. Appl. Math. Model. 2017, 49, 87–107. [Google Scholar] [CrossRef] [Scilit]
- Stojanović, M.; Regodić, D. The Significance of the Integrated Multicriteria ABC-XYZ Method for the Inventory Management Process. Acta Polytech. Hung. 2017, 14, 29–48. [Google Scholar] [CrossRef] [Scilit]
- van As, M.; Bührmann, J. Improving Inventory Management at an Automotive Company by Applying the ABC–XYZ–FSN Classification Method. South Afr. J. Ind. Eng. 2025, 36, 274–287. [Google Scholar] [CrossRef] [Scilit]
- Ahmad, N.H.; Mufti, W.F.; Sari, T.N.; Muti, A.A.; Yulfadila, Y. Inventory Analysis of Spare Part Using Always, Better, Control (ABC) and Economic Order Quantity (EOQ) Method in PT. XYZ—Medan. J. IPTEK 2025, 29, 105–120. [Google Scholar] [CrossRef] [Scilit]
- Mejía, S.; Aguilar, J. A demand forecasting system of product categories defined by their time series using a hybrid approach of ensemble learning with feature engineering. Computing 2024, 106, 3945–3965. [Google Scholar] [CrossRef] [Scilit]
- Cerqueira, V.; Moniz, N.; Soares, C. VEST: Automatic feature engineering for forecasting. Mach. Learn. 2021, 113, 4523–4545. [Google Scholar] [CrossRef] [Scilit]
- Yemets, K.; Izonin, I.; Mitoulis, S.A. Multi-Family Wavelet-Based Feature Engineering Method for Short-Term Time Series Forecasting. Sci. Rep. 2025, 15, 9812. [Google Scholar] [CrossRef] [Scilit]
- van Zyl, C.; Ye, X.; Naidoo, R. Harnessing eXplainable artificial intelligence for feature selection in time series energy forecasting: A comparative analysis of Grad-CAM and SHAP. Appl. Energy 2024, 353, 122079. [Google Scholar] [CrossRef] [Scilit]
- Lolli, F.; Gamberini, R.; Regattieri, A.; Balugani, E.; Gatos, T.; Gucci, S. Single-hidden layer neural networks for forecasting intermittent demand. Int. J. Prod. Econ. 2017, 183, 116–128. [Google Scholar] [CrossRef] [Scilit]
- Zhu, X.; Ninh, A.; Zhao, H.; Liu, Z. Demand Forecasting with Supply-Chain Information and Machine Learning: Evidence in the Pharmaceutical Industry. Prod. Oper. Manag. 2021, 30, 3231–3252. [Google Scholar] [CrossRef] [Scilit]
- Zohdi, M.; Rafiee, M.; Kayvanfar, V.; Salamiraad, A. Demand forecasting based machine learning algorithms on customer information: An applied approach. Int. J. Inf. Technol. 2022, 14, 1937–1947. [Google Scholar] [CrossRef] [Scilit]
- El Filali, A.; El Habib, B.L.; El Filali, S.; Kasbouya, M.; Ajouary, M.A.; Akantous, S. Machine Learning Applications in Supply Chain Management: A Deep Learning Model Using an Optimized LSTM Network for Demand Forecasting. Int. J. Intell. Eng. Syst. 2022, 15, 464–478. [Google Scholar] [CrossRef] [Scilit]
- Liu, R.; Vakharia, V. Optimizing Supply Chain Management Through BO-CNN-LSTM for Demand Forecasting and Inventory Management. J. Organ. End User Comput. 2024, 36, 25. [Google Scholar] [CrossRef] [Scilit]
- Mutsurova, Z.M.; Aigumov, T.G.; Zatsarinnaya, E.I. Demand Forecasting Using Deep Neural Networks and Its Impact on Inventory Management. Ekon. I Upr. Probl. Resheniya 2025, 10, 75–82. [Google Scholar] [CrossRef] [Scilit]
- Sharma, V.; Ali, O.S.O.; Kantak, G. Supply Chain Intelligence: Deep Learning for Demand Forecasting and Inventory Management. Int. J. Adv. Res. Sci. Commun. Technol. 2024, 4, 402–407. [Google Scholar] [CrossRef] [Scilit]
- Feizabadi, J. Machine learning demand forecasting and supply chain performance. Int. J. Logist. Res. Appl. 2020, 25, 119–142. [Google Scholar] [CrossRef] [Scilit]
- Almomani, J.; Nassreddine, G.; Al-Khatib, O.; Kala, R.R.; Nassereddine, M. Time Series Forecasting Approach for Power Demand Prediction Based on Feature Engineering, Optuna-Based Hyperparameter Tuning, and Ensemble Learning. In Proceedings of the 2025 IEEE PES Conference on Innovative Smart Grid Technologies—Middle East (ISGT Middle East), Dubai, United Arab Emirates, 23–26 November 2025; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
- Amosu, O.R.; Kumar, P.; Ogunsuji, Y.M.; Oni, S.; Faworaja, O. AI-driven demand forecasting: Enhancing inventory management and customer satisfaction. World J. Adv. Res. Rev. 2024, 23, 708–719. [Google Scholar] [CrossRef] [Scilit]
- Garza, A.; Challu, C.; Mergenthaler-Canseco, M. TimeGPT-1. arXiv 2023, arXiv:2310.03589. [Google Scholar] [CrossRef] [Scilit]
- Das, A.; Kong, W.; Sen, R.; Zhou, Y. A Decoder-Only Foundation Model for Time-Series Forecasting. arXiv 2023, arXiv:2310.10688. [Google Scholar] [CrossRef] [Scilit]
- Ansari, A.F.; Stella, L.; Turkmen, C.; Zhang, X.; Mercado, P.; Shen, H.; Shchur, O.; Rangapuram, S.S.; Arango, S.P.; Kapoor, S.; et al. Chronos: Learning the Language of Time Series. arXiv 2024, arXiv:2403.07815. [Google Scholar] [CrossRef] [Scilit]
- Breiman, L. Random Forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef] [Scilit]
- Chen, T.; Guestrin, C. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; pp. 785–794. [Google Scholar] [CrossRef] [Scilit]
- Vapnik, V. The Nature of Statistical Learning Theory; Springer: New York, NY, USA, 1995. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.

