"Trying to crack the code" is a worthwhile effort in my opinion. What you learn will help you going forward. It may not help in the way you imagine but it will be useful.
A healthy blood glucose metabolism as crafted by mother nature is an elegant work of art. It can signal and solicit corrections in a heart beat and be done before you, as a diabetic, are even aware there's an issue. It's a multi-factor system, not simply glucose and insulin. There are other hormones involved such as glucagon, amylin, adrenaline, and cortisol. The action of these hormones are calibrated in a complex way and do not always act the same way every time they're present.
As a result of this complexity, trying to reproduce a beautiful, swift, and nuanced system that nature created with a silicon valley digital solution is crude, but has its merits. We need to keep reaching to make things better at the margins. It is a worthwhile project. Don't let the naysayers discourage your efforts. There is value in your work. We don't have many other options.