Twice a day a little robot in Rayfield Byrd’s living room lights up and asks him a very personal question: “Have you taken your medication?”

For the past few weeks, Mr. Byrd, a 67-year-old retired transit worker who lives alone in Oakland, Calif., has been able to proudly answer “yes.”

The portable robot’s name is Mabu, and at the recommendation...