Summary As the energy industry increasingly turns to unconventional shale reservoirs to meet global demands, the development of advanced predictive models for shale oil production has become imperative. The inherent complexity of shale formations, coupled with the intricacies of hydraulic fracturing, poses significant challenges to efficient resource extraction. Our study leverages a substantial data set from the Ordos Basin to develop an advanced predictive model, integrating 18 parameters that blend static petrophysical attributes and dynamic factors, including hydraulic fracturing parameters and real-time pump pressure data. This holistic approach enables our self-attention (SA) model to accurately forecast future production rates by processing the complex interplay between reservoir characteristics and operational inputs. In testing across three wells, the model achieved average accuracies of 99.28% for daily oil production (DOP) and 99.25% for daily liquid production (DLP) over 20 days, surpassing traditional long short-term memory (LSTM) and gated recurrent unit (GRU) models, proving its efficacy in fractured well production forecasting. Furthermore, using the initial 30 days of production data as input, the model demonstrated its capability to predict DOP and DLP over a one-year period, achieving prediction accuracies of 96.2% for DOP and 99.6% for DLP rates. Our model’s profound implications for the shale industry include establishing a quantifiable link between key factors and production forecasts, guiding the optimization of controllable aspects, and serving as a decision-support tool for more efficient and cost-effective oil recovery.