Sensormind: Virtual sensing and complex event detection for internet of things