Enabling Automated Machine Learning for Model-Driven AI Engineering

Armin Moin, Ukrit Wattanavaekin, Alexandra Lungu, Moharram Challenger, Atta Badii, Stephan GünnemannarXiv 2022 · OpenReview

Abstract: Developing smart software services requires both Software Engineering and Artificial Intelligence (AI) skills. AI practitioners, such as data scientists often focus on the AI side, for example, creating and training Machine Learning (ML) models given a specific use case and data. They are typically not concerned with the entire software development life-cycle, architectural decisions for the system and performance issues beyond the predictive ML models (e.g., regarding the security, privacy, throughput, scalability, availability, as well as ethical, legal and regulatory compliance). In this manuscript, we propose a novel approach to enable Model-Driven Software Engineering and Model-Driven AI Engineering. In particular, we support Automated ML, thus assisting software engineers without deep AI knowledge in developing AI-intensive systems by choosing the most appropriate ML model, algorithm and techniques with suitable hyper-parameters for the task at hand. To validate our work, we carry out a case study in the smart energy domain.

Introduction

Non-Intrusive Appliance Load Monitoring (NIALM) is a critical technology for smart grid management, allowing for the disaggregation of individual appliance energy consumption from a single aggregate power signal. While cost-effective and privacy-preserving, NIALM presents a complex "inverse problem" that typically requires significant machine learning expertise to solve. Practitioners must navigate a vast landscape of algorithms and hyperparameters, often relying on manual trial-and-error. This paper introduces AutoML4NIALM, an open-source tool designed to automate this process, enabling software engineers and energy domain experts to deploy high-performing models without deep AI specialization.

Methodology

The core of our approach is the application of Automated Machine Learning (AutoML) to the NIALM domain. We utilize Bayesian Optimization, specifically the Tree-structured Parzen Estimator (TPE) algorithm via the Hyperopt library, to efficiently search for optimal model configurations.

The hierarchical search space for the AutoML4NIALM tool, detailing models and their respective hyperparameters.

The search space encompasses a diverse set of models, ranging from traditional Combinatorial Optimization (CO) and Factorial Hidden Markov Models (FHMM) to advanced deep learning architectures such as Long Short-Term Memory (LSTM), Gated Recurrent Units (GRU), and Denoising Autoencoders (DAE). The tool is designed to prevent common pitfalls like data leakage in time-series analysis, ensuring robust and fair benchmarking across industry standards like REDD, UK-DALE, and REFIT.

Evaluation

The proposed framework was validated using the Reference Energy Disaggregation Data Set (REDD), focusing on 37 days of low-frequency data from "House 1". Performance was evaluated across multiple metrics, with a particular emphasis on Mean Absolute Error (MAE), which provides the most direct measure of energy estimation accuracy for grid balancing applications.

Results and Discussion

The benchmarking results revealed several key insights. Most notably, simple Decision Trees (DT), when properly tuned via AutoML, achieved the lowest overall error rates (MAE of 14.86), outperforming more complex deep learning models like GRUs (19.55) and LSTMs (25.77). This suggests that for low-frequency energy data, the "step-like" signatures of appliances are effectively captured by tree-based methods.

Comparison of model performance across Accuracy and Mean Absolute Error (MAE).

Furthermore, the impact of automated tuning was profound. For instance, a standard Fully-Connected Neural Network (FCNN) saw its classification accuracy jump from 37% under manual configuration to 88% after optimization. These results underscore that the effectiveness of an algorithm is heavily dependent on its hyperparameter configuration. Notably, the authors prioritized efficiency, excluding certain complex hybrid models whose marginal accuracy gains did not justify their significant computational overhead.

Conclusion

AutoML4NIALM demonstrates that automating the model selection and tuning process can bridge the gap between software engineering and AI engineering. By identifying that simpler models like Decision Trees can rival or exceed deep learning performance in specific contexts, we highlight the importance of systematic benchmarking. Future work will focus on enhancing the tool's accessibility through a graphical user interface and expanding its application to broader time-series domains.

Summary updated

Abstract

Developing smart software services requires both Software Engineering and Artificial Intelligence (AI) skills. AI practitioners, such as data scientists often focus on the AI side, for example, creating and training Machine Learning (ML) models given a specific use case and data. They are typically not concerned with the entire software development life-cycle, architectural decisions for the system and performance issues beyond the predictive ML models (e.g., regarding the security, privacy, throughput, scalability, availability, as well as ethical, legal and regulatory compliance). In this manuscript, we propose a novel approach to enable Model-Driven Software Engineering and Model-Driven AI Engineering. In particular, we support Automated ML, thus assisting software engineers without deep AI knowledge in developing AI-intensive systems by choosing the most appropriate ML model, algorithm and techniques with suitable hyper-parameters for the task at hand. To validate our work, we carry out a case study in the smart energy domain.
BibTeX
@misc{moin2022enabling,
  author = {Armin Moin and Ukrit Wattanavaekin and Alexandra Lungu and Moharram Challenger and Atta Badii and Stephan Günnemann},
  title = {{Enabling Automated Machine Learning for Model-Driven AI Engineering}},
  year = {2022},
  eprint = {2203.02927},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.02927},
}
Figure