Smart technology to improve the sustainable manufacturing of diabetes drugs