Energy Optimization in building design field now has been revolutionized due to AI and machine learning applications. Leveraging daylight to reduce artificial lighting consumption holds promise for significant energy savings, yet the nonlinear nature of daylight patterns poses challenges in prediction and optimization. This study proposes a novel approach to automated light shelf design using machine learning algorithms, specifically artificial neural networks (ANNs) such as recurrent neural networks (RNN) by long short term memory (LSTM), to accelerate daylighting simulation and optimization processes. The methodology employed two distinct approaches: Firstly, we employed the theoretical-analytical approach to explore methods for utilizing machine learning in natural lighting and light shelf parameters. Second, the practical and applied method involved creating a predictive model for designing the light shelf using appropriate AI and ML techniques. This model is based on an office geometry model at the El Arish weather file in Egypt, four-dimensional training room models with three internal zones-oriented south. Rhinoceros and Grasshopper, two parametric simulation tools, are used to normalize and optimize light shelf parameters like geometry cross-section, curvature surface, width, height position, depth, tilt angle, and reflectance materials. Then, the Galapagos plug-in and Colibri2 are used for dataset creation and optimization. The results demonstrate that automated light shelf operation has a significant impact on internal daylighting quality. RNNs enable rapid prediction of optimization models, reducing time consumption in the early design phase. ML facilitates decision-making by generating evaluative criteria from user-selected design options. RNNs were classified as good and bad and used LSTM to enhance prediction accuracy for efficient illuminance values metric in zones 1 and 2. Challenges include increasing the simulation procedure's efficiency. The results of model accuracy reached 99%. Hence, future research should prioritize resolving the previously identified concerns. In conclusion, this study underscores the importance of ML-driven approaches in early design phases to optimize building energy consumption and pave the way for sustainable architectural practices.