A unit of Hitachi Ltd. will launch a new venture that uses artificial intelligence to analyze the leftovers of carefully planned hospital meals to ensure patients get the nutrients needed to better facilitate recovery, company officials said Monday.

While AI is already being used to calculate calories and nutrients in meals from images taken before people eat, using AI to analyze leftovers from images is rare, according to officials at Hitachi Solutions Create Ltd., which is set to start the business by the end of March 2019.

Hospitals prepare meals to accommodate each inpatient's medical needs, but if inpatients fail to eat them completely they may not recover from their illnesses or injuries as expected.