WU-OPS-003 · Public free challenge · Human-reviewed · No cash prize
Build an offline Python 3.12 industrial sensor CSV validator. Plant telemetry may include stale values, duplicate timestamps, invalid quality codes and out-of-order sensor events. Your tool should detect these data-quality problems without accessing operational DCS/SCADA equipment.
Input and output contract
- Read UTF-8 CSV with header
timestamp_utc,sensor_id,value,unit,quality; timestamps are RFC3339 UTC ending in Z, with second precision. - Read a JSON policy keyed by sensor ID containing
unit,min,maxandmax_gap_seconds. Document the policy schema. - Emit JSON with integer
row_count(data rows) andissues. Each issue hasrow(header counts as row 1),severity,codeandmessage. - Detect
INVALID_TIMESTAMP,UNKNOWN_SENSOR,INVALID_VALUE,OUT_OF_RANGE,UNIT_MISMATCH,DUPLICATE_TIMESTAMP,OUT_OF_ORDER,STALE_GAPandBAD_QUALITY. - Recognize GOOD, BAD and UNCERTAIN qualities. Flag BAD and UNCERTAIN as warnings and reject unknown quality strings. Track ordering, duplicates and gaps independently per sensor.
- Python standard library only, no network calls or control outputs. Explain inclusive limits, malformed rows and deterministic output order.
Public test data
Example policy: {"TT101":{"unit":"C","min":0,"max":120,"max_gap_seconds":120},"PT102":{"unit":"bar","min":0,"max":25,"max_gap_seconds":120}}
timestamp_utc,sensor_id,value,unit,quality 2026-11-01T00:00:00Z,TT101,35,C,GOOD 2026-11-01T00:01:00Z,PT102,8,bar,GOOD 2026-11-01T00:03:30Z,TT101,140,C,GOOD 2026-11-01T00:03:30Z,TT101,36,C,UNCERTAIN 2026-11-01T00:02:00Z,PT102,9,psi,BAD 2026-11-01T00:01:30Z,TT101,37,C,GOOD
Minimum expected findings: row 4 TT101 out of range and gap over 120 seconds; row 5 duplicate TT101 timestamp and uncertain quality; row 6 PT102 unit mismatch and bad quality; row 7 TT101 timestamp out of order. Additional justified reports are allowed.
Rubric — 100 points
- 60: correct issue codes and row-level reporting.
- 20: robust quoted CSV and timestamp parsing, per-sensor state and boundary handling.
- 10: reproducible standard-library-only tests and one-line command.
- 10: README, assumptions, limitations and safe error handling.
Submit your solution
Submit a public repository URL, 40-hex commit SHA, exact run command and sample output via Arena Submit. A human reviews evidence; no WordPress code execution, paid entry, prize or automatic payout. Do not use confidential plant data or present this tool as a safety interlock. Publication requires entrant consent and reviewer confirmation. Read rules and privacy.
Discover more from WireUnwired Research
Subscribe to get the latest posts sent to your email.
