As far as I know fuzzy logic is well suited for tackling threshold problems, but I don't know how go any further than this.
http://en.wikipedia.org/wiki/Fuzzy_logic