To accurately predict reservoir porosity, a method based on bi-directional long short-term memory with attention mechanism (BiLSTM-AM) optimized by the improved pelican optimization algorithm (IPOA) is proposed. Firstly, the nonlinear inertia weight factor, Cauchy mutation, and sparrow warning mechanism are introduced to improve the pelican optimization algorithm (POA). Secondly, the superiority of IPOA is verified by using the CEC–2022 benchmark test functions. In addition, the Wilcoxon test is applied to evaluate the experimental results, which proves the superiority of IPOA against other popular algorithms. Finally, BiLSTM-AM is optimized by IPOA, and IPOA-BiLSTM-AM is used for porosity prediction in the Midlands basin. The results show that IPOA-BiLSTM-AM has the smallest prediction error for the verification set samples (RMSE and MAE were 0.5736 and 0.4313, respectively), which verifies its excellent performance.
After 5 different plans of development, the Weiyuan block is struggling to maintain stable production and urgently needs a new method to improve the recovery rate. Practice at home and abroad shows that three-dimensional development can effectively improve the degree of vertical shale gas utilization. Therefore, this paper first analyzes the distribution of reservoirs in the Weiyuan block and calculates the distribution of remaining reserves through the methods of fine description of gas reservoirs and establishment of a three-dimensional geological model. The results show that the recovery degree of the platform in the main production area of Weiyuan is 35~60%, and the average remaining reserves of the wells are (1.2~3) × 108 m3, and there is three-dimensional development potential in the local area. Secondly, through the establishment of a fracture and rock mechanics model, the target layer system for three-dimensional development of the Weiyuan block is preliminary selected from five aspects, namely, remaining reserves, reservoir characteristics, fracture density, mechanical characteristics, and the comparison of the height of the fracture network. Finally, in order to check the correctness of the target layer for three-dimensional development and evaluate the effect of the three-dimensional development, four scenarios for the lower branch of the H8 platform are designed and numerically simulated using Petrel RE software. The results of the numerical simulation show that Option 2 is the most effective, which can increase the production of the platform by 1.76 × 108 m3, and the recovery rate grows from 16.4% to 31.0%, with an overall increase of 14.6%. The relevant understanding can provide a reference for the three-dimensional development strategy of the Weiyuan shale gas block.