Tidepool is a non-profit focused on diabetes. Among other things, they are working on an algorithm (loop) that does insulin dosing: https://www.tidepool.org/tidepool-loop
If one wants to separate the hardware (insulin pump, CGM) from the algorithm that controls them, seems like Tidepool is one org to talk to.