If you search for "Smart Insulin" you'll see that JDRF has been doing work on something similar. The real issue with insulin is that you need something gluco-reactive in order for it to be effective, so, yes there is work underway, but we're a fairly long way off it being mainstream.