Machine Learning To Scale Fault Detection In Smart Energy Generation And Building Systems