Multi-Task NILM with Anomaly Detection Using a Hybrid CNN–BilSTM–Transformer Model
Mihriban Gunay, Yakup Demir, Marin ZhilevskiNon-Intrusive Load Monitoring (NILM) enables estimation of the energy use of individual appliances in smart buildings from a single aggregate meter. In practice, however, this task is not straightforward. Signals from different appliances can overlap, and the measured data may also include distortions such as spikes, drops, and noise. To address these issues, this study presents a multi-task triple-hybrid deep learning framework that handles appliance classification and anomaly detection together. The model brings together 1D-CNN, BiLSTM, and Transformer Attention so that local patterns, temporal dependencies, and wider contextual information can be learned within the same structure. It also uses a dual-output design to classify appliance categories and detect anomaly types simultaneously. Experiments were carried out on Building 1 of the UK-DALE dataset with four appliances: kettle, microwave, washer dryer, and fridge freezer. For the anomaly task, synthetic disturbances were added to segmented signal windows and grouped as normal, spike, drop, and noise. To check how well the proposed framework handled different scenarios, it was tested on both the UK-DALE and REDD datasets. Looking at the main UK-DALE results, the model correctly identified appliances 99.48% of the time and spotted anomalies with 98.80% accuracy. A secondary test on the REDD dataset yielded an 86.44% classification score. This proves the architecture can adjust to completely new power grid environments without losing its edge. On top of that, when pitted against standard benchmark models like Seq2Point, this triple-hybrid design clearly does a better job of mapping out complex signal changes. As a result, it yields much stronger anomaly detection metrics.