A smart middleware to detect on-off trust attacks in the Internet of Things | IEEE Conference Publication | IEEE Xplore