Workshop paper

Agentic Code Generation for Heuristic Rules in Equipment Monitoring

Abstract

In industrial environments, time series sensor data are a primary resource for monitoring equipment health and performance, with alerts often triggered by manually defined heuristic rules. Deploying these rules in production can be a labour-intensive and error-prone process. We present an agentic system that assists reliability engineers by autonomously translating expert-defined monitoring rules, expressed in natural language, into runnable code and executing that code over the target data streams. Evaluations on 41 expert-authored rules from 30 industrial sites show that model performance generally improves with scale, but that consistency, efficiency, and accuracy are significantly enhanced when agents are more highly structured. These results position LLM-based agents as a promising direction for industrial monitoring systems.