Knowledge-based metering devices