Currently, in conditions of increasing uncertainty of external economic and geopolitical factors, approaches based on digitalization of analytical processes associated with their intellectualization through the use of mathematical tools are used to make effective management decisions at enterprises. Planning of a wide range of issues regarding the functioning of enterprises in the short term, and especially in the long term, depends on the reliability and relevance of the analytical material. The purpose of the study was to develop a data analysis algorithm for inventory management at an industrial enterprise adapted to the current conditions caused by the uncertainty of a number of identified factors. The article presents an analysis of the state of industry in Russia for 2017–2021. The dynamics of the price index for hotel types of economic activity is given, the pattern of changes in the number of industrial enterprises is reflected. The forecast of the price index for individual industries for 2025 is graphically presented. The main problems faced by the branch of Russian industry are identified and a brief description of their impact on the development of industrial enterprises is given. The applicability of system analysis methods for solving inventory management problems is substantiated. The composition of the Economic ordering quantity model is analyzed and the need for its modernization is argued, taking into account the effects of environmental uncertainty factors to determine the optimal order size. The authors propose a data mining algorithm designed to calculate the optimal order quantity based on a modified Wilson formula with the described assumptions and constraints. The approbation of the calculation based on it is presented. To substantiate the correctness and applicability of the algorithm, a comparison of real and calculated data is given, an expert assessment is carried out on the relevance and possibility of its implementation at industrial enterprises in order to reduce risks when making managerial decisions in terms of warehouse logistics, in particular in inventory management.