That could be pretty cool, but if you think about what it would take to script that, it would essentially be an entirely new system in itself. Maybe at best with this sort of reverse engineering system, if you passed the DC you could guess the key ingredient. Still a major problem includes the fact that there are multiple recipes to the same end product.
In the end, I think the system is great as it is.
In the end, I think the system is great as it is.