Transforming smart devices and systems into intelligent ones for security, energy saving and health care.