A group of Ontario students are using artificial intelligence to train a robot to recognize human emotions and 鈥渆mpathize鈥 with its companion.

The students at Ontario Tech University in Oshawa, Ont., have been programming a to read and react to human emotions.

鈥淲e have made some progress, but from that to the point where the robot can build empathy for the human, there is a long way to go,鈥 Miguel Vargas Martin, computer science professor at the Ontario Tech University, told CTV News Channel. 鈥淚 think we are on the right track.鈥

Zenbo, released in 2016 with an initial purchase price of $599, is capable of controlling the devices of smart homes, including light fixtures. It can also tell jokes, read children鈥檚 stories and can alert the users of upcoming appointments.

鈥淭he robot becomes a truly confident companion for the human,鈥 Martin said.

The students are using a program within the robot that allows developers to code additional features, including added dialogue, expressions and actions. Using this programming application, the students are hoping to 鈥渢rain鈥 the robot to understand human emotions and react to them appropriately.

鈥淲e鈥檙e trying to combine the facial expression with the vocals of the human companion and the robot -- using AI -- should be able to pick up the potential emotions of the human,鈥 Martin said.

鈥淲e are confident that with AI we should be able to tell with certain margin of error what the human is feeling in any particular time.鈥

If the project is successful, Zenbo could one day theoretically understand when someone is going through a mental health crisis and could then alert a caregiver, as an example.

Martin said the students鈥 program will also protect the user鈥檚 data by keeping it on the device, rather than sending it to the cloud like Amazon鈥檚 Alexa or Google Assistant.

鈥淲e鈥檙e trying to make it private so that everything you say to the robot stays with the robot,鈥 he said.