Targeting uncertainty in smart CPS by confidence-based logic