This work studies the automatic classification of water consumption patterns and electrical devices, both supervised and unsupervised. This involves training machine learning algorithms to identify normal and abnormal water consumption patterns and differentiate between different types of electrical devices. We performed an unsupervised classification of consumer water patterns in direct and indirect ways. The first is to use the raw consumption patterns obtained directly from the server. The second one corresponds to the use of the sampled consumption patterns. This classification is performed using hierarchical bottom-up classification and a self-organizing map. A probabilistic analysis of daily water consumption is performed to extract the percentage of daily consumption with the most information. It enables us to identify water consumption patterns more quickly by reducing the number of data points for each daily pattern, allowing us to recognize and classify anomalous behaviors as soon as feasible. Then, the signatures of electrical devices are classified using three ML algorithms: multilayer perceptron (MLP), k nearest neighbor (KNN), and decision tree (DT). Furthermore, assembly approaches are also studied. These are based on the OAA (One Against All) principle, which presents one class against all other classes, and the ECOC (Error-Correcting Output Codes) philosophy, which allows the classification error to be corrected. According to the bias/variance trade-off, both techniques enhanced classification by ensuring accuracy and generalization. A more in-depth analysis of the properties of the electrical devices is handled with an esemplastic approach based on gradient-boosting decision trees. The features of electrical devices can be extracted using this analysis based on the nature of their harmonic signatures.