Input learned threshold