This document proposes a machine learning model using an edge-fog computing architecture to detect electric energy fraud from smart meter data. It tests various machine learning algorithms on smart meter data from Mexico and finds that a multi-layer perceptron regression model achieves the lowest error rates. The results indicate the model can adequately detect anomalies in energy consumption and production. While human intervention is still needed, the proposed model is designed to operate on embedded devices with limited computing capabilities. The use of fog computing through data centers also improves forecasting performance.