Data QC automation

Monitoring Data QC Automation

Data returned by monitoring devices must be checked before use. The two tools below encode the check rules as code. One compares a sensor against nearby stations. The other checks time-series anomalies in a single device. Both output a list for manual review and explanatory text.

2 toolsReference comparison / time-series anomaly check
8 rulesCompleteness, plausibility, correlation, and five time-series anomaly types
2 outputsFailed-record list and interpretation text

Common approach

1Write the rules downThe pass criteria and thresholds for each check are confirmed with the user's team and saved in a rule file.
2Judge by programEach record is judged against the rules. The same data gives the same result on every run.
3List the basisEach failed record includes its value, the threshold, and the reason.
4Manual reviewThe program lists only the items that need review. A person decides whether to use the data.

Tool list

Sketch of a scatter plot with a prediction interval

Sensor-versus-reference check tool

The tool uses nearby public stations as a reference. It runs three checks on the readings of a self-installed sensor: completeness, plausibility, and correlation. It has a desktop graphical interface and is packaged as a single executable.

PythontkinterLinear regression and prediction intervalPyInstaller
Open description and interactive demo
Sketch of a time-series chart with anomaly segments

Monitoring time-series anomaly check and plain-language interpretation

The tool checks hourly monitoring data for five anomaly types: gap, flat value, spike, step change, and out-of-range value. It generates an interpretation paragraph and a report for each device from fixed sentence patterns.

PythonpandasRule-based anomaly detectionBatch report generation
Open description and interactive demo