The article reflects the basic principles of the application of artificial intelligence (AI) and machine learning (ML) technologies at oil refineries, with a particular focus on Russian industrial enterprises. Modern oil refineries are equipped with numerous sensors embedded in technological units, generating vast volumes of heterogeneous data in real time. Effective processing of this data is essential not only for maintaining the stable operation of equipment but also for optimizing energy consumption, which is especially relevant under the increasing global demand for energy resources. The study highlights how AI and ML methods are transforming data management in the oil industry by enabling predictive analytics and real-time decision-making. Python programming language plays a central role in this process due to its open-source ecosystem, flexibility, and extensive set of specialized libraries. Key libraries are categorized and discussed: for data preprocessing and manipulation (NumPy, SciPy, Pandas, Dask), for visualization (Matplotlib, Seaborn, Plotly), and for building predictive models (Scikit-learn, PyTorch, TensorFlow, Keras, Statsmodels). In addition, the article discusses the importance of model validation, hyperparameter tuning, and the automation of ML workflows using pipelines to improve the accuracy and adaptability of predictions under variable operating conditions. Through practical examples based on real industrial datasets, the authors demonstrate the capabilities of Python tools in creating interpretable and robust AI solutions that help improve energy efficiency and support digital transformation in the oil refining sector.
Keywords: machine learning (ML), artificial intelligence (AI), intelligent data analysis, Python, Scikit-learn, forecasting, energy consumption, oil refining, oil and gas industry, oil refinery