Skip to main navigation Skip to search Skip to main content

A Machine Learning-Based Stock Forecasting Method for Inventory Optimization in Micro and Small Enterprises

  • Jimmy K. Franco
  • , Nelson M. Guevara
  • , Pedro Castaneda
  • , Juan Mansilla-Lopez
  • , Alberto Daniel Garcia-Nunez
  • Universidad Peruana de Ciencias Aplicadas
  • Universidad Nacional Toribio Rodríguez de Mendoza de Amazonas
  • Universidad Pontificia Bolivariana

Research output: Contribution to journalArticlepeer-review

Abstract

Efficient inventory management remains a critical challenge for Micro and Small Enterprises (MSEs) that operate under limited resources and fluctuating market demands. This study proposes a lightweight and interpretable machine-learning framework based on the Random Forest algorithm to predict product demand and optimize inventory levels. Historical sales data was preprocessed, structured, and used to train and validate the model through multiple evaluation metrics. The proposed model achieved a Mean Absolute Percentage Error (MAPE) of 2.41% and a Coefficient of Determination (R2) of 0.99, outperforming comparative models such as K-Nearest Neighbors, Decision Tree, and XGBoost. These results confirm the model’s capacity to capture short-term fluctuations and long-term trends with high predictive accuracy. Feature-importance analysis revealed that the interaction between quantity and price was the most influential variable, followed by relative price and seasonal factors. The findings demonstrate that data-driven forecasting can significantly reduce overstocking and stockout situations, enhancing operational efficiency and decision-making. This study establishes a reproducible, resource-efficient forecasting workflow tailored specifically to the operational constraints of MSEs, filling an existing methodological gap in inventory prediction research.

Original languageEnglish
Pages (from-to)32081-32088
Number of pages8
JournalEngineering, Technology and Applied Science Research
Volume16
Issue number1
DOIs
StatePublished - 2026
Externally publishedYes

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 8 - Decent Work and Economic Growth
    SDG 8 Decent Work and Economic Growth
  2. SDG 9 - Industry, Innovation, and Infrastructure
    SDG 9 Industry, Innovation, and Infrastructure

Keywords

  • demand forecasting
  • desktop application
  • inventory management
  • machine learning
  • MSEs
  • stock prediction

Fingerprint

Dive into the research topics of 'A Machine Learning-Based Stock Forecasting Method for Inventory Optimization in Micro and Small Enterprises'. Together they form a unique fingerprint.

Cite this