Researchers invent a smart