No offense but this sounds like a nightmare. It also sounds like you did a fantastic job achieving accuracy despite the complexity of the system. That’s something to be proud of.
Software is full of these systems.
There's an infinitely smaller financial incentive to making sure it works well and functions securely. Thus it rarely happens...