Spatiotemporal Optimization of Oilfield Electricity Consumption: A Multi-Objective Modeling Approach with Machine Learning
Abstract
1. Introduction
2. Materials and Methods
2.1. Overall Framework and Problem Description
2.2. Data Collection and Preprocessing
2.2.1. Data Sources
2.2.2. Data Preprocessing
2.3. Electricity Consumption Decomposition and Production Prediction
2.3.1. Electricity Consumption Decomposition
2.3.2. Machine Learning-Based Production Prediction
2.4. Multi-Objective Spatiotemporal Optimization Model
2.4.1. Problem Definition
- w1, w2, w2 are weighting coefficients (w1 + w2 + w2 = 1), determined based on industrial expert experience and production requirements (set as 0.5, 0.3, 0.2 in this study, prioritizing efficiency while ensuring stability and priority);
- is the planned production target of unit n in month t;
- is the predicted production output of unit n in month t (derived from the LGBM model, with decomposed into E1, E2, E2 as input);
- is the inverse efficiency coefficient of unit n ( = 1/mean (production/electricity consumption)), reflecting operational efficiency: higher efficiency leads to smaller imposing stronger penalties for production deviations;
- is the original planned electricity allocation of unit n in month t (before optimization);
- is the priority coefficient of unit n, integrated by strategic importance, operational stability, and production urgency (normalized to [0, 1], higher values indicate higher priority, requiring stricter protection against excessive electricity adjustments).
- Efficiency term (): Minimizes the quadratic deviation between predicted and planned production, weighted by the inverse efficiency coefficient. This ensures that high-efficiency units (with smaller ) have smaller production deviations, achieving “energy saving without production loss”.
- Stability term (): Constrains the quadratic deviation between optimized and original planned electricity allocation, avoiding drastic monthly adjustments that disrupt production stability.
- Priority term (): Applies linear penalties for electricity adjustments based on unit priority, protecting key units from excessive reductions.
- Total balance constraint: The cumulative electricity reduction across all units and remaining months must exactly offset the early excess electricity consumption (ΔE), ensuring compliance with the annual electricity target (Equation (10)):
- Monthly adjustment limit constraint: The total monthly electricity allocation of all units shall not deviate excessively from the original plan (set as ±20% based on industrial practice), preventing production disruptions caused by extreme adjustments (Equation (11)):
- Key unit protection constraint: The optimized electricity allocation of the key unit shall not be less than 85% of the original plan, ensuring the stability of core production capacity (Equation (12)).
2.4.2. Model Solution Algorithm
3. Results and Analysis
3.1. Simulated Data Validation
3.1.1. Simulation Scenario Setup
3.1.2. Production Impact Minimization
3.1.3. Allocation Fairness
3.2. Oilfield Data Validation
3.2.1. Field Data Overview
3.2.2. Core Constraint Compliance
3.2.3. Field Production Impact Minimization
3.2.4. Practical Allocation Rationality
4. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- International Energy Agency (IEA). World Energy Outlook 2023; IEA Publications: Paris, France, 2023. [Google Scholar]
- Lyu, R.; Zhang, C.; Li, Z.; Li, Y. Manufacturers’ integrated strategies for emission reduction and recycling: The role of government regulations. Comput. Ind. Eng. 2022, 163, 107769. [Google Scholar] [CrossRef]
- Kunene, N.; Chung, Y.C. Sustainable production policy impact on palm oil firms’ performance: Empirical analysis from Indonesia. Sustainability 2020, 12, 8750. [Google Scholar] [CrossRef]
- Hunt, J.D.; Nascimento, A.; Nascimento, N.; Vieira, L.W.; Romero, O.J. Possible pathways for oil and gas companies in a sustainable future: From the perspective of a hydrogen economy. Renew. Sustain. Energy Rev. 2022, 160, 112291. [Google Scholar] [CrossRef]
- Ekechukwu, D.E.; Simpa, P. Trends, insights, and future prospects of renewable energy integration within the oil and gas sector operations. World J. Adv. Eng. Technol. Sci. 2024, 12, 152–167. [Google Scholar] [CrossRef]
- Oji, D.N.; Ezeh, E.M. Assessing the Progress of Decarbonization Efforts in Nigeria’s Oil and Gas Industry. Caritas J. Chem. Eng. Ind. Biotechnol. 2025, 2, 46–57. [Google Scholar]
- Cucchiella, F.; D’Adamo, I.; Gastaldi, M.; Miliacca, M. Efficiency and allocation of emission allowances and energy consumption over more sustainable European economies. J. Clean. Prod. 2018, 182, 805–817. [Google Scholar] [CrossRef]
- Mohamadinejad, H.; Amirteimoori, A.; Kordrostami, S.; Hosseinzadeh, L.F. A managerial approach in resource allocation models: An application in US and Canadian oil and gas companies. Yugosl. J. Oper. Res. 2023, 33, 481–498. [Google Scholar] [CrossRef]
- Chen, X.; Wang, M.; Wang, B.; Hao, H.; Shi, H.; Wu, Z.; Wang, B. Energy consumption reduction and sustainable development for oil & gas transport and storage engineering. Energies 2023, 16, 1775. [Google Scholar] [CrossRef]
- Virstyuk, A.; Bushmeleva, K.; Ivanov, F.; Mikshina, V. Reducing electricity consumption in oil production. In Proceedings of the 2020 International Conference on Electrotechnical Complexes and Systems (ICOECS), Ufa, Russia, 26–28 October 2020; IEEE: New York, NY, USA, 2020; pp. 1–4. [Google Scholar]
- Ma, Q. Analysis on energy consumption quota in oil production. Energy Conserv. Pet. Petrochem. Ind. 2017, 7, 33–34+11–12. [Google Scholar]
- Huang, Z.H. Exploration, research and application analysis of energy optimization technology for gathering and transportation system in Daqing oilfield. Oil-Gas Field Surf. Eng. 2023, 42, 82–85. [Google Scholar]
- Li, Z.Q.; Li, D.B.; Bing, S.X.; Xiao, W.; Zhang, H.Y.; Xu, Y.C.; Zheng, W.B.; Yang, X.L. Decomposition and allocation method of energy consumption quota for oil enterprises based on reasonable energy consumption of oil reservoir: A case of Shengli Oilfield. Pet. Geol. Recovery Effic. 2022, 29, 77–84. [Google Scholar]
- Chen, X.; Zhang, K.; Ji, Z.; Shen, X.; Liu, P.; Zhang, L.; Wang, J.; Yao, J. Progress and Challenges of Integrated Machine Learning and Traditional Numerical Algorithms: Taking Reservoir Numerical Simulation as an Example. Mathematics 2023, 11, 4418. [Google Scholar] [CrossRef]
- Azamifard, A.; Rashidi, F.; Ahmadi, M.; Pourfard, M.; Dabir, B. Toward more real-istic models of reservoir by cutting-edge characterization of permeability with MPS methods and deep-learning-based selection. J. Pet. Sci. Eng. 2019, 181, 106135. [Google Scholar] [CrossRef]
- Mishra, S.; Datta-Gupta, A. Applied Statistical Modeling and Data Analytics: A Practical Guide for the Petroleum Geosciences; Elsevier: Amsterdam, The Netherlands, 2017. [Google Scholar]
- Gabdrahmanova, K.F.; Izmailova, G.R.; Samigullina, L.Z. Methods of mathematical statistics application in assessing the density of actual and forecasting distribution density of residual oil reserves. In IOP Conference Series: Materials Science and Engineering; IOP Publishing: Bristol, UK, 2020; Volume 860, p. 012008. [Google Scholar]
- Wang, X.; Fei, Y.X.; Guo, J.J.; Zeng, L. Research on the application of energy consumption control and digital construction in improving quality and efficiency of oilfield station. Oil-Gas Field Surf. Eng. 2023, 42, 70–74. [Google Scholar]
- Cao, Y.; Song, M.H.; Zhao, W.D.; Xu, X.F.; Lin, G.Q. Analysis on energy efficiency evaluation method of key energy system in oil and gas fields: Taking the Tarim oilfield as an example. Chem. Eng. Oil Gas. 2020, 49, 106–114. [Google Scholar]
- Malekpoor, H.; Chalvatzis, K.; Mishra, N.; Mehlawat, M.K.; Zafirakis, D.; Song, M. Integrated grey relational analysis and multi objective grey linear programming for sustainable electricity generation planning. Ann. Oper. Res. 2018, 269, 475–503. [Google Scholar] [CrossRef]
- Bai, Y.; Hou, J.; Liu, Y.; Zhao, D.; Bing, S.; Xiao, W.; Zhao, W. Energy-consumption calculation and optimization method of integrated system of injection-reservoir-production in high water-cut reservoir. Energy 2022, 239, 121961. [Google Scholar] [CrossRef]
- Dong, Z.; Ruan, Y.; Ruan, Y.; Tian, Y. Identifying the primary factors influencing energy consumption in the water injection system through the use of fuzzy logic. In Proceedings of the 2024 6th International Conference on Intelligent Control, Measurement and Signal Processing (ICMSP), Xi’an, China, 29 November–1 December 2024; IEEE: New York, NY, USA, 2024; pp. 6–10. [Google Scholar] [CrossRef]
- Sievers, J.; Blank, T. A Systematic Literature Review on Data-Driven Residential and Industrial Energy Management Systems. Energies 2023, 16, 1688. [Google Scholar] [CrossRef]
- Munir, S.; Pradhan, M.R.; Abbas, S.; Khan, M.A. Energy Consumption Prediction Based on LightGBM Empowered with eXplainable Artificial Intelligence. IEEE Access 2024, 12, 91263–91271. [Google Scholar] [CrossRef]
- Olabanji, A.O.; Akeredolu, O.T. The role of Artificial Intelligence (AI) and Machine Learning (ML) in the oil and gas industry: A systematic literature review. J. Tech. Stud. 2025, 7, 45–68. [Google Scholar]
- Fan, D.; Lai, S.; Sun, H.; Yang, Y.; Yang, C.; Fan, N.; Wang, M. Review of machine learning methods for steady state capacity and transient production forecasting in oil and gas reservoir. Energies 2025, 18, 842. [Google Scholar] [CrossRef]
- Ke, G.; Meng, Q.; Finley, T.; Wang, T.; Chen, W.; Ma, W.; Ye, Q.; Liu, T.Y. Lightgbm: A highly efficient gradient boosting decision tree. Adv. Neural Inf. Process. Syst. 2017, 30, 3149–3157. [Google Scholar]
- Cortes, C.; Vapnik, V. Support-vector networks. Mach. Learn. 1995, 20, 273–297. [Google Scholar] [CrossRef]
- Geurts, P.; Ernst, D.; Wehenkel, L. Extremely randomized trees. Mach. Learn. 2006, 63, 3–42. [Google Scholar] [CrossRef]
- 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; Association for Computing Machinery: New York, NY, USA, 2016; pp. 785–794. [Google Scholar]
- Hosmer, D.W., Jr.; Lemeshow, S.; Sturdivant, R.X. Applied Logistic Regression, 3rd ed.; John Wiley & Sons, Inc.: Hoboken, NJ, USA, 2013. [Google Scholar]
- Drucker, H.; Burges, C.J.; Kaufman, L.; Smola, A.; Vapnik, V. Support vector regression machines. Adv. Neural Inf. Process. Syst. 1996, 9, 155–161. [Google Scholar]
- Hoerl, A.E.; Kennard, R.W. Ridge regression: Biased estimation for nonorthogonal problems. Technometrics 1970, 12, 55–67. [Google Scholar] [CrossRef]
- Breiman, L.; Friedman, J.H.; Olshen, R.A.; Stone, C.J. Classification and Regression Trees; Wadsworth: Belmont, CA, USA, 1984. [Google Scholar]
- Tibshirani, R. Regression Shrinkage and Selection via the Lasso. J. R. Stat. Soc. Ser. B (Methodol.) 1996, 58, 267–288. [Google Scholar] [CrossRef]
- Kraft, D. A Software Package for Sequential Quadratic Programming (DFVLR-FB 88-28); Institut für Dynamik der Flugsysteme, DFVLR: Oberpfaffenhofen, Germany, 1988. [Google Scholar]
- Virtanen, P.; Gommers, R.; Oliphant, T.E.; Haberland, M.; Reddy, T.; Cournapeau, D.; Burovski, E.; Peterson, P.; Weckesser, W.; Bright, J.; et al. SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nat. Methods 2020, 17, 261–272. [Google Scholar] [CrossRef] [PubMed]





| MODEL | MAE | RMSE | R2 | Relative Error |
|---|---|---|---|---|
| LGBM [27] | 0.6091 | 0.7435 | 0.9933 | 0.0359 |
| SVM [28] | 3.3754 | 4.2059 | 0.7856 | 0.2165 |
| ET [29] | 0.6043 | 0.8382 | 0.9915 | 0.038 |
| XGB [30] | 1.0244 | 1.5052 | 0.9805 | 0.0693 |
| LR [31] | 2.1538 | 2.5868 | 0.9189 | 0.1466 |
| SVR [32] | 3.3754 | 4.2059 | 0.7856 | 0.2165 |
| RIDG [33] | 2.154 | 2.5863 | 0.9189 | 0.1466 |
| DT [34] | 0.9406 | 1.2587 | 0.9808 | 0.0626 |
| LASSO [35] | 2.1623 | 2.5896 | 0.9187 | 0.1472 |
| K Value | MAE | RMSE | R2 | RE |
|---|---|---|---|---|
| True K | 0.6091 | 0.7435 | 0.9933 | 0.0359 |
| Estimated K | 1.0636 | 1.7024 | 0.9649 | 0.0682 |
| Unit | Baseline Electricity Consumption (103 kWh) | Efficiency Coefficient (Tons/kWh) | Planned Annual Production (103 Tons) | Priority Weight |
|---|---|---|---|---|
| Area 0 | 5000 | 0.03 | 1800 | 0.9 (High) |
| Area 1 | 4000 | 0.01 | 1440 | 0.6 (Medium) |
| Area 2 | 2000 | 0.02 | 864 | 0.7 (Medium) |
| Method | Total (103 Tons) | Ratio (%) | Area 0 (103 Tons) | Area 1 (103 Tons) | Area 2 (103 Tons) |
|---|---|---|---|---|---|
| Optimization | 275.57 | 7.74 | 164.82 | 25.90 | 84.85 |
| Ton-per-kWh | 336.07 | 9.43 | 290.61 | 3.75 | 41.72 |
| comparison | 60.50 (18.0%) | 1.69 | 125.79 (43.3%) | −22.15 | −43.13 |
| Area | Normalized Efficiency (αn) | Priority Weight (Cn) | Planned Production (103 Tons) |
|---|---|---|---|
| Area 0 | 1.00 | 0.9 | 2577.0 |
| Area 1 | 0.89 | 0.6 | 3838.2 |
| Area 2 | 0.80 | 0.7 | 3820.5 |
| Area 3 | 0.46 | 0.8 | 1105.5 |
| Area 4 | 0.67 | 0.75 | 2441.1 |
| Area 5 | 0.62 | 0.85 | 1895.3 |
| Area 6 | 0.37 | 0.65 | 625.3 |
| Month | Planned Production (103 Tons) | Actual Production (103 Tons) | Planned Electricity (103 kWh) | Actual Electricity (103 kWh) | Electricity Deviation (103 kWh) |
|---|---|---|---|---|---|
| 1 | 1307.6 | 1469.0 | 44,703.0 | 45,877.2 | 1174.2 |
| 2 | 1185.1 | 1308.6 | 38,465.4 | 38,670.5 | 205.1 |
| 3 | 1319.8 | 1448.0 | 38,502.3 | 38,569.5 | 67.2 |
| 4 | 1300.2 | 1403.4 | 32,276.5 | 32,712.7 | 436.2 |
| 5 | 1374.9 | 1435.5 | 30,770.4 | 31,044.1 | 273.7 |
| Indicator | Total Electricity Reduction (103 kWh) | Total Production Loss (103 Tons) | Electricity Reduction Ratio (%) | Production Reduction Ratio (%) |
|---|---|---|---|---|
| Optimization | 2160.0 | 11.40 | 0.90 | 0.11 |
| Ton-per-kWh | 2160.0 | 16.88 | 0.90 | 0.17 |
| Improvement | / | 32.5% | / | 0.06 |
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.
Share and Cite
Song, W.; Xu, Y.; Lyu, B.; Liu, W.; Zhang, Y.; Wang, J. Spatiotemporal Optimization of Oilfield Electricity Consumption: A Multi-Objective Modeling Approach with Machine Learning. Algorithms 2026, 19, 401. https://doi.org/10.3390/a19050401
Song W, Xu Y, Lyu B, Liu W, Zhang Y, Wang J. Spatiotemporal Optimization of Oilfield Electricity Consumption: A Multi-Objective Modeling Approach with Machine Learning. Algorithms. 2026; 19(5):401. https://doi.org/10.3390/a19050401
Chicago/Turabian StyleSong, Wenrong, Yuan Xu, Bin Lyu, Wenbin Liu, Yuxuan Zhang, and Jin Wang. 2026. "Spatiotemporal Optimization of Oilfield Electricity Consumption: A Multi-Objective Modeling Approach with Machine Learning" Algorithms 19, no. 5: 401. https://doi.org/10.3390/a19050401
APA StyleSong, W., Xu, Y., Lyu, B., Liu, W., Zhang, Y., & Wang, J. (2026). Spatiotemporal Optimization of Oilfield Electricity Consumption: A Multi-Objective Modeling Approach with Machine Learning. Algorithms, 19(5), 401. https://doi.org/10.3390/a19050401

