One of the relevant factors in smart energy management is the ability to predict the consumption of energy in smart households and use the resulting data for planning and operating energy generation. For the utility to save money on energy generation, it must be able to forecast electrical demands and schedule generation resources to meet the demand. In this paper, we propose an optimized deep network model for predicting future consumption of energy in smart households based on the Dipper Throated Optimization (DTO) algorithm and Long Short-Term Memory (LSTM). The proposed deep network consists of three parts, the first part contains a single layer of bidirectional LSTM, the second part contains a set of stacked unidirectional LSTM, and the third part contains a single layer of fully connected neurons. The design of the proposed deep network targets represents the temporal dependencies of energy consumption for boosting prediction accuracy. The parameters of the proposed deep network are optimized using the DTO algorithm. The proposed model is validated using the publicly available UCI household energy dataset. In comparison to the other competing machine learning models, such as Random Forest (RF), Support Vector Machine (SVM), K-Nearest Neighbor (KNN), Multi-Layer Perceptron (MLP), Sequence-to-Sequence (Seq2Seq), and standard LSTM, the performance of the proposed model shows promising effectiveness and superiority when evaluated using eight evaluation criteria including Root Mean Square Error (RMSE) and R2. Experimental results show that the proposed optimized deep model achieved an RMSE of (0.0047) and R2 of (0.998), which outperform those values achieved by the other models. In addition, a sensitivity analysis is performed to study the stability and significance of the proposed approach. The recorded results confirm the effectiveness, superiority, and stability of the proposed approach in predicting the future consumption of energy in smart households.